forked from p15670423/monkey
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:
parent
c29d90aa5f
commit
3cde0919e7
|
@ -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, ...]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue