Common: Ignore valid-type on con{int,float}

mypy can't handle pydantic's conint and confloat. See
https://github.com/pydantic/pydantic/issues/239 and
https://github.com/pydantic/pydantic/issues/156 for more details.
This commit is contained in:
Mike Salvatore 2022-09-30 14:39:35 -04:00
parent c29d90aa5f
commit 3cde0919e7
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ from .agent_sub_configurations import (
class AgentConfiguration(MutableInfectionMonkeyBaseModel):
keep_tunnel_open_time: confloat(ge=0)
keep_tunnel_open_time: confloat(ge=0) # type: ignore[valid-type]
custom_pbas: CustomPBAConfiguration
post_breach_actions: Tuple[PluginConfiguration, ...]
credential_collectors: Tuple[PluginConfiguration, ...]

View File

@ -187,6 +187,6 @@ class PropagationConfiguration(MutableInfectionMonkeyBaseModel):
:param exploitation: Configuration for exploitation
"""
maximum_depth: conint(ge=0)
maximum_depth: conint(ge=0) # type: ignore[valid-type]
network_scan: NetworkScanConfiguration
exploitation: ExploitationConfiguration