diff --git a/plugins/azure/resoto_plugin_azure/azure_client.py b/plugins/azure/resoto_plugin_azure/azure_client.py index 48682ebf2..0c50f8f14 100644 --- a/plugins/azure/resoto_plugin_azure/azure_client.py +++ b/plugins/azure/resoto_plugin_azure/azure_client.py @@ -99,8 +99,8 @@ def _call(self, spec: AzureApiSpec, **kwargs: Any) -> List[Json]: # Handle error responses if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) # Parse json content # TODO: handle pagination diff --git a/plugins/azure/tools/azure_model_gen.py b/plugins/azure/tools/azure_model_gen.py index 49618bbfb..96a83c50f 100644 --- a/plugins/azure/tools/azure_model_gen.py +++ b/plugins/azure/tools/azure_model_gen.py @@ -539,7 +539,7 @@ def safe_idx(seq, index): obj[path[0]] = value else: if path[0] not in obj: - if type(path[1]) == int: + if type(path[1]) is int: obj[path[0]] = [] else: obj[path[0]] = {} diff --git a/requirements-all.txt b/requirements-all.txt index ce4bbf980..9df89c466 100644 --- a/requirements-all.txt +++ b/requirements-all.txt @@ -1,41 +1,41 @@ aiodns==3.0.0 -aiofiles==23.1.0 +aiofiles==23.2.1 aiohttp[speedups]==3.8.5 aiohttp-jinja2==1.5.1 aiohttp-swagger3==0.7.4 aiosignal==1.3.1 aiostream==0.4.5 annotated-types==0.5.0 -apscheduler==3.10.1 +apscheduler==3.10.4 asn1crypto==1.5.1 astroid==2.15.6 -async-timeout==4.0.2 +async-timeout==4.0.3 attrs==23.1.0 autocommand==2.2.2 azure-common==1.1.28 -azure-core==1.28.0 -azure-identity==1.13.0 +azure-core==1.29.3 +azure-identity==1.14.0 azure-mgmt-core==1.4.0 azure-mgmt-resource==23.0.1 backoff==2.2.1 bcrypt==4.0.1 black==23.7.0 -boto3==1.28.10 -botocore==1.31.10 +boto3==1.28.32 +botocore==1.31.32 brotli==1.0.9 build==0.10.0 cachetools==5.3.1 cattrs==23.1.2 -cerberus==1.3.4 +cerberus==1.3.5 certifi==2023.7.22 cffi==1.15.1 -chardet==5.1.0 +chardet==5.2.0 charset-normalizer==3.2.0 cheroot==10.0.0 cherrypy==18.8.0 -click==8.1.6 +click==8.1.7 colorama==0.4.6 -coverage[toml]==7.2.7 +coverage[toml]==7.3.0 cryptography==40.0.2 deepdiff==6.3.1 defusedxml==0.7.1 @@ -44,20 +44,20 @@ dill==0.3.7 distlib==0.3.7 fastjsonschema==2.16.3 filelock==3.12.2 -flake8==6.0.0 +flake8==6.1.0 frozendict==2.3.8 frozenlist==1.4.0 google-api-core==2.11.1 -google-api-python-client==2.94.0 +google-api-python-client==2.97.0 google-auth==2.22.0 google-auth-httplib2==0.1.0 google-cloud-core==2.3.3 google-cloud-storage==2.10.0 google-crc32c==1.5.0 google-resumable-media==2.5.0 -googleapis-common-protos==1.59.1 +googleapis-common-protos==1.60.0 httplib2==0.22.0 -hypothesis==6.82.0 +hypothesis==6.82.6 idna==3.4 importlib-metadata==6.8.0 inflect==7.0.0 @@ -66,7 +66,7 @@ isodate==0.6.1 isort==5.12.0 jaraco-collections==4.3.0 jaraco-context==4.3.0 -jaraco-functools==3.8.0 +jaraco-functools==3.8.1 jaraco-text==3.11.1 jinja2==3.1.2 jmespath==1.0.1 @@ -79,63 +79,63 @@ markupsafe==2.1.3 mccabe==0.7.0 mdurl==0.1.2 monotonic==1.6 -more-itertools==10.0.0 +more-itertools==10.1.0 msal==1.23.0 msal-extensions==1.0.0 multidict==6.0.4 -mypy==1.4.1 +mypy==1.5.1 mypy-extensions==1.0.0 networkx==3.1 -numpy==1.25.1 +numpy==1.25.2 oauth2client==4.1.3 oauthlib==3.2.2 onelogin==2.0.4 ordered-set==4.1.0 oscrypto==1.3.0 packaging==23.1 -paramiko==3.2.0 +paramiko==3.3.1 parsy==2.1 -pathspec==0.11.1 +pathspec==0.11.2 pep8-naming==0.13.3 pint==0.22 pip==23.2.1 -pip-tools==7.1.0 +pip-tools==7.3.0 plantuml==0.3.0 -platformdirs==3.9.1 +platformdirs==3.10.0 pluggy==1.2.0 portalocker==2.7.0 portend==3.2.0 -posthog==3.0.1 +posthog==3.0.2 prometheus-client==0.17.1 prompt-toolkit==3.0.39 -protobuf==4.23.4 +protobuf==4.24.1 psutil==5.9.5 -psycopg2-binary==2.9.6 +psycopg2-binary==2.9.7 pyarrow==12.0.1 pyasn1==0.5.0 pyasn1-modules==0.3.0 pycares==4.3.0 -pycodestyle==2.10.0 +pycodestyle==2.11.0 pycparser==2.21 pycryptodomex==3.18.0 -pydantic==2.0.3 -pydantic-core==2.3.0 -pyflakes==3.0.1 -pygithub==1.59.0 -pygments==2.15.1 +pydantic==2.2.1 +pydantic-core==2.6.1 +pyflakes==3.1.0 +pygithub==1.59.1 +pygments==2.16.1 pyjwt[crypto]==2.8.0 -pylint==2.17.4 +pylint==2.17.5 pymysql==1.1.0 pynacl==1.5.0 pyopenssl==23.2.0 -pyparsing==3.1.0 -pyproject-api==1.5.3 +pyparsing==3.1.1 +pyproject-api==1.5.4 pyproject-hooks==1.0.0 pytest==7.4.0 pytest-asyncio==0.21.1 pytest-cov==4.1.0 pytest-runner==6.0.0 -python-arango==7.5.9 +python-arango==7.6.0 python-dateutil==2.8.2 pytz==2023.3 pyvmomi==8.0.1.0.2 @@ -149,10 +149,10 @@ resotodatalink[extra]==1.2.0 resotoui==3.7.1 retrying==1.3.4 rfc3339-validator==0.1.4 -rich==13.4.2 +rich==13.5.2 rsa==4.9 -s3transfer==0.6.1 -setuptools==68.0.0 +s3transfer==0.6.2 +setuptools==68.1.2 six==1.16.0 slack-sdk==3.21.3 snowflake-connector-python==3.0.4 @@ -160,13 +160,13 @@ snowflake-sqlalchemy==1.4.7 sortedcontainers==2.4.0 sqlalchemy==1.4.49 tempora==5.5.0 -tenacity==8.2.2 +tenacity==8.2.3 toml==0.10.2 -tomlkit==0.11.8 +tomlkit==0.12.1 toolz==0.12.0 -tox==4.6.4 +tox==4.10.0 transitions==0.9.0 -typeguard==4.0.0 +typeguard==4.1.2 typing-extensions==4.7.1 typish==1.9.3 tzdata==2023.3 @@ -174,10 +174,10 @@ tzlocal==5.0.1 uritemplate==4.1.1 urllib3==1.26.16 ustache==0.1.5 -virtualenv==20.24.2 +virtualenv==20.24.3 wcwidth==0.2.6 -websocket-client==1.6.1 -wheel==0.41.0 +websocket-client==1.6.2 +wheel==0.41.2 wrapt==1.15.0 yarl==1.9.2 zc-lockfile==3.0.post1 diff --git a/requirements-extra.txt b/requirements-extra.txt index 428a9ce88..37df3976d 100644 --- a/requirements-extra.txt +++ b/requirements-extra.txt @@ -1,29 +1,29 @@ aiodns==3.0.0 -aiofiles==23.1.0 +aiofiles==23.2.1 aiohttp[speedups]==3.8.5 aiohttp-jinja2==1.5.1 aiohttp-swagger3==0.7.4 aiosignal==1.3.1 aiostream==0.4.5 annotated-types==0.5.0 -apscheduler==3.10.1 +apscheduler==3.10.4 asn1crypto==1.5.1 -async-timeout==4.0.2 +async-timeout==4.0.3 attrs==23.1.0 autocommand==2.2.2 azure-common==1.1.28 -azure-core==1.28.0 -azure-identity==1.13.0 +azure-core==1.29.3 +azure-identity==1.14.0 azure-mgmt-core==1.4.0 azure-mgmt-resource==23.0.1 backoff==2.2.1 bcrypt==4.0.1 -boto3==1.28.10 -botocore==1.31.10 +boto3==1.28.32 +botocore==1.31.32 brotli==1.0.9 cachetools==5.3.1 cattrs==23.1.2 -cerberus==1.3.4 +cerberus==1.3.5 certifi==2023.7.22 cffi==1.15.1 charset-normalizer==3.2.0 @@ -38,14 +38,14 @@ filelock==3.12.2 frozendict==2.3.8 frozenlist==1.4.0 google-api-core==2.11.1 -google-api-python-client==2.94.0 +google-api-python-client==2.97.0 google-auth==2.22.0 google-auth-httplib2==0.1.0 google-cloud-core==2.3.3 google-cloud-storage==2.10.0 google-crc32c==1.5.0 google-resumable-media==2.5.0 -googleapis-common-protos==1.59.1 +googleapis-common-protos==1.60.0 httplib2==0.22.0 idna==3.4 importlib-metadata==6.8.0 @@ -53,7 +53,7 @@ inflect==7.0.0 isodate==0.6.1 jaraco-collections==4.3.0 jaraco-context==4.3.0 -jaraco-functools==3.8.0 +jaraco-functools==3.8.1 jaraco-text==3.11.1 jinja2==3.1.2 jmespath==1.0.1 @@ -64,46 +64,47 @@ markdown-it-py==3.0.0 markupsafe==2.1.3 mdurl==0.1.2 monotonic==1.6 -more-itertools==10.0.0 +more-itertools==10.1.0 msal==1.23.0 msal-extensions==1.0.0 multidict==6.0.4 networkx==3.1 -numpy==1.25.1 +numpy==1.25.2 oauth2client==4.1.3 oauthlib==3.2.2 onelogin==2.0.4 ordered-set==4.1.0 oscrypto==1.3.0 packaging==23.1 -paramiko==3.2.0 +paramiko==3.3.1 parsy==2.1 pint==0.22 plantuml==0.3.0 +platformdirs==3.10.0 portalocker==2.7.0 portend==3.2.0 -posthog==3.0.1 +posthog==3.0.2 prometheus-client==0.17.1 prompt-toolkit==3.0.39 -protobuf==4.23.4 +protobuf==4.24.1 psutil==5.9.5 -psycopg2-binary==2.9.6 +psycopg2-binary==2.9.7 pyarrow==12.0.1 pyasn1==0.5.0 pyasn1-modules==0.3.0 pycares==4.3.0 pycparser==2.21 pycryptodomex==3.18.0 -pydantic==2.0.3 -pydantic-core==2.3.0 -pygithub==1.59.0 -pygments==2.15.1 +pydantic==2.2.1 +pydantic-core==2.6.1 +pygithub==1.59.1 +pygments==2.16.1 pyjwt[crypto]==2.8.0 pymysql==1.1.0 pynacl==1.5.0 pyopenssl==23.2.0 -pyparsing==3.1.0 -python-arango==7.5.9 +pyparsing==3.1.1 +python-arango==7.6.0 python-dateutil==2.8.2 pytz==2023.3 pyvmomi==8.0.1.0.2 @@ -117,10 +118,10 @@ resotodatalink[extra]==1.2.0 resotoui==3.7.1 retrying==1.3.4 rfc3339-validator==0.1.4 -rich==13.4.2 +rich==13.5.2 rsa==4.9 -s3transfer==0.6.1 -setuptools==68.0.0 +s3transfer==0.6.2 +setuptools==68.1.2 six==1.16.0 slack-sdk==3.21.3 snowflake-connector-python==3.0.4 @@ -128,10 +129,11 @@ snowflake-sqlalchemy==1.4.7 sortedcontainers==2.4.0 sqlalchemy==1.4.49 tempora==5.5.0 -tenacity==8.2.2 +tenacity==8.2.3 +tomlkit==0.12.1 toolz==0.12.0 transitions==0.9.0 -typeguard==4.0.0 +typeguard==4.1.2 typing-extensions==4.7.1 typish==1.9.3 tzdata==2023.3 @@ -140,7 +142,7 @@ uritemplate==4.1.1 urllib3==1.26.16 ustache==0.1.5 wcwidth==0.2.6 -websocket-client==1.6.1 +websocket-client==1.6.2 wrapt==1.15.0 yarl==1.9.2 zc-lockfile==3.0.post1 diff --git a/requirements-test.txt b/requirements-test.txt index c9e859b1d..ba63d6bf8 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,40 +1,40 @@ aiodns==3.0.0 -aiofiles==23.1.0 +aiofiles==23.2.1 aiohttp[speedups]==3.8.5 aiohttp-jinja2==1.5.1 aiohttp-swagger3==0.7.4 aiosignal==1.3.1 aiostream==0.4.5 annotated-types==0.5.0 -apscheduler==3.10.1 +apscheduler==3.10.4 astroid==2.15.6 -async-timeout==4.0.2 +async-timeout==4.0.3 attrs==23.1.0 autocommand==2.2.2 azure-common==1.1.28 -azure-core==1.28.0 -azure-identity==1.13.0 +azure-core==1.29.3 +azure-identity==1.14.0 azure-mgmt-core==1.4.0 azure-mgmt-resource==23.0.1 backoff==2.2.1 bcrypt==4.0.1 black==23.7.0 -boto3==1.28.10 -botocore==1.31.10 +boto3==1.28.32 +botocore==1.31.32 brotli==1.0.9 build==0.10.0 cachetools==5.3.1 cattrs==23.1.2 -cerberus==1.3.4 +cerberus==1.3.5 certifi==2023.7.22 cffi==1.15.1 -chardet==5.1.0 +chardet==5.2.0 charset-normalizer==3.2.0 cheroot==10.0.0 cherrypy==18.8.0 -click==8.1.6 +click==8.1.7 colorama==0.4.6 -coverage[toml]==7.2.7 +coverage[toml]==7.3.0 cryptography==40.0.2 deepdiff==6.3.1 defusedxml==0.7.1 @@ -43,16 +43,16 @@ dill==0.3.7 distlib==0.3.7 fastjsonschema==2.16.3 filelock==3.12.2 -flake8==6.0.0 +flake8==6.1.0 frozendict==2.3.8 frozenlist==1.4.0 google-api-core==2.11.1 -google-api-python-client==2.94.0 +google-api-python-client==2.97.0 google-auth==2.22.0 google-auth-httplib2==0.1.0 -googleapis-common-protos==1.59.1 +googleapis-common-protos==1.60.0 httplib2==0.22.0 -hypothesis==6.82.0 +hypothesis==6.82.6 idna==3.4 importlib-metadata==6.8.0 inflect==7.0.0 @@ -61,7 +61,7 @@ isodate==0.6.1 isort==5.12.0 jaraco-collections==4.3.0 jaraco-context==4.3.0 -jaraco-functools==3.8.0 +jaraco-functools==3.8.1 jaraco-text==3.11.1 jinja2==3.1.2 jmespath==1.0.1 @@ -74,11 +74,11 @@ markupsafe==2.1.3 mccabe==0.7.0 mdurl==0.1.2 monotonic==1.6 -more-itertools==10.0.0 +more-itertools==10.1.0 msal==1.23.0 msal-extensions==1.0.0 multidict==6.0.4 -mypy==1.4.1 +mypy==1.5.1 mypy-extensions==1.0.0 networkx==3.1 oauth2client==4.1.3 @@ -86,44 +86,44 @@ oauthlib==3.2.2 onelogin==2.0.4 ordered-set==4.1.0 packaging==23.1 -paramiko==3.2.0 +paramiko==3.3.1 parsy==2.1 -pathspec==0.11.1 +pathspec==0.11.2 pep8-naming==0.13.3 pint==0.22 pip==23.2.1 -pip-tools==7.1.0 +pip-tools==7.3.0 plantuml==0.3.0 -platformdirs==3.9.1 +platformdirs==3.10.0 pluggy==1.2.0 portalocker==2.7.0 portend==3.2.0 -posthog==3.0.1 +posthog==3.0.2 prometheus-client==0.17.1 prompt-toolkit==3.0.39 -protobuf==4.23.4 +protobuf==4.24.1 psutil==5.9.5 pyasn1==0.5.0 pyasn1-modules==0.3.0 pycares==4.3.0 -pycodestyle==2.10.0 +pycodestyle==2.11.0 pycparser==2.21 -pydantic==2.0.3 -pydantic-core==2.3.0 -pyflakes==3.0.1 -pygithub==1.59.0 -pygments==2.15.1 +pydantic==2.2.1 +pydantic-core==2.6.1 +pyflakes==3.1.0 +pygithub==1.59.1 +pygments==2.16.1 pyjwt[crypto]==2.8.0 -pylint==2.17.4 +pylint==2.17.5 pynacl==1.5.0 -pyparsing==3.1.0 -pyproject-api==1.5.3 +pyparsing==3.1.1 +pyproject-api==1.5.4 pyproject-hooks==1.0.0 pytest==7.4.0 pytest-asyncio==0.21.1 pytest-cov==4.1.0 pytest-runner==6.0.0 -python-arango==7.5.9 +python-arango==7.6.0 python-dateutil==2.8.2 pytz==2023.3 pyvmomi==8.0.1.0.2 @@ -137,22 +137,22 @@ resotodatalink==1.2.0 resotoui==3.7.1 retrying==1.3.4 rfc3339-validator==0.1.4 -rich==13.4.2 +rich==13.5.2 rsa==4.9 -s3transfer==0.6.1 -setuptools==68.0.0 +s3transfer==0.6.2 +setuptools==68.1.2 six==1.16.0 slack-sdk==3.21.3 sortedcontainers==2.4.0 sqlalchemy==1.4.49 tempora==5.5.0 -tenacity==8.2.2 +tenacity==8.2.3 toml==0.10.2 -tomlkit==0.11.8 +tomlkit==0.12.1 toolz==0.12.0 -tox==4.6.4 +tox==4.10.0 transitions==0.9.0 -typeguard==4.0.0 +typeguard==4.1.2 typing-extensions==4.7.1 typish==1.9.3 tzdata==2023.3 @@ -160,10 +160,10 @@ tzlocal==5.0.1 uritemplate==4.1.1 urllib3==1.26.16 ustache==0.1.5 -virtualenv==20.24.2 +virtualenv==20.24.3 wcwidth==0.2.6 -websocket-client==1.6.1 -wheel==0.41.0 +websocket-client==1.6.2 +wheel==0.41.2 wrapt==1.15.0 yarl==1.9.2 zc-lockfile==3.0.post1 diff --git a/requirements.txt b/requirements.txt index 9f51ae103..6a15be13c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,28 +1,28 @@ aiodns==3.0.0 -aiofiles==23.1.0 +aiofiles==23.2.1 aiohttp[speedups]==3.8.5 aiohttp-jinja2==1.5.1 aiohttp-swagger3==0.7.4 aiosignal==1.3.1 aiostream==0.4.5 annotated-types==0.5.0 -apscheduler==3.10.1 -async-timeout==4.0.2 +apscheduler==3.10.4 +async-timeout==4.0.3 attrs==23.1.0 autocommand==2.2.2 azure-common==1.1.28 -azure-core==1.28.0 -azure-identity==1.13.0 +azure-core==1.29.3 +azure-identity==1.14.0 azure-mgmt-core==1.4.0 azure-mgmt-resource==23.0.1 backoff==2.2.1 bcrypt==4.0.1 -boto3==1.28.10 -botocore==1.31.10 +boto3==1.28.32 +botocore==1.31.32 brotli==1.0.9 cachetools==5.3.1 cattrs==23.1.2 -cerberus==1.3.4 +cerberus==1.3.5 certifi==2023.7.22 cffi==1.15.1 charset-normalizer==3.2.0 @@ -36,10 +36,10 @@ fastjsonschema==2.16.3 frozendict==2.3.8 frozenlist==1.4.0 google-api-core==2.11.1 -google-api-python-client==2.94.0 +google-api-python-client==2.97.0 google-auth==2.22.0 google-auth-httplib2==0.1.0 -googleapis-common-protos==1.59.1 +googleapis-common-protos==1.60.0 httplib2==0.22.0 idna==3.4 importlib-metadata==6.8.0 @@ -47,7 +47,7 @@ inflect==7.0.0 isodate==0.6.1 jaraco-collections==4.3.0 jaraco-context==4.3.0 -jaraco-functools==3.8.0 +jaraco-functools==3.8.1 jaraco-text==3.11.1 jinja2==3.1.2 jmespath==1.0.1 @@ -58,7 +58,7 @@ markdown-it-py==3.0.0 markupsafe==2.1.3 mdurl==0.1.2 monotonic==1.6 -more-itertools==10.0.0 +more-itertools==10.1.0 msal==1.23.0 msal-extensions==1.0.0 multidict==6.0.4 @@ -68,29 +68,29 @@ oauthlib==3.2.2 onelogin==2.0.4 ordered-set==4.1.0 packaging==23.1 -paramiko==3.2.0 +paramiko==3.3.1 parsy==2.1 pint==0.22 plantuml==0.3.0 portalocker==2.7.0 portend==3.2.0 -posthog==3.0.1 +posthog==3.0.2 prometheus-client==0.17.1 prompt-toolkit==3.0.39 -protobuf==4.23.4 +protobuf==4.24.1 psutil==5.9.5 pyasn1==0.5.0 pyasn1-modules==0.3.0 pycares==4.3.0 pycparser==2.21 -pydantic==2.0.3 -pydantic-core==2.3.0 -pygithub==1.59.0 -pygments==2.15.1 +pydantic==2.2.1 +pydantic-core==2.6.1 +pygithub==1.59.1 +pygments==2.16.1 pyjwt[crypto]==2.8.0 pynacl==1.5.0 -pyparsing==3.1.0 -python-arango==7.5.9 +pyparsing==3.1.1 +python-arango==7.6.0 python-dateutil==2.8.2 pytz==2023.3 pyvmomi==8.0.1.0.2 @@ -104,18 +104,18 @@ resotodatalink==1.2.0 resotoui==3.7.1 retrying==1.3.4 rfc3339-validator==0.1.4 -rich==13.4.2 +rich==13.5.2 rsa==4.9 -s3transfer==0.6.1 -setuptools==68.0.0 +s3transfer==0.6.2 +setuptools==68.1.2 six==1.16.0 slack-sdk==3.21.3 sqlalchemy==1.4.49 tempora==5.5.0 -tenacity==8.2.2 +tenacity==8.2.3 toolz==0.12.0 transitions==0.9.0 -typeguard==4.0.0 +typeguard==4.1.2 typing-extensions==4.7.1 typish==1.9.3 tzdata==2023.3 @@ -124,7 +124,7 @@ uritemplate==4.1.1 urllib3==1.26.16 ustache==0.1.5 wcwidth==0.2.6 -websocket-client==1.6.1 +websocket-client==1.6.2 wrapt==1.15.0 yarl==1.9.2 zc-lockfile==3.0.post1 diff --git a/resotocore/resotocore/model/model.py b/resotocore/resotocore/model/model.py index d6e9ab735..de0009ffd 100644 --- a/resotocore/resotocore/model/model.py +++ b/resotocore/resotocore/model/model.py @@ -1392,7 +1392,7 @@ def merge_metadata(update: ComplexKind, existing: ComplexKind) -> None: def update_is_valid(from_kind: Kind, to_kind: Kind) -> None: # Allowed changes: The update # - does not change it's type (e.g. going from SimpleKind to ComplexKind) - if type(from_kind) != type(to_kind): # pylint: disable=unidiomatic-typecheck + if type(from_kind) is not type(to_kind): # pylint: disable=unidiomatic-typecheck raise AttributeError(f"Update {from_kind.fqn} changes an existing property type {from_kind.fqn}") # resolve and build dict diff --git a/resotolib/resotolib/args.py b/resotolib/resotolib/args.py index 25bbec47f..48df6945d 100644 --- a/resotolib/resotolib/args.py +++ b/resotolib/resotolib/args.py @@ -72,7 +72,9 @@ def print_machine_help(self) -> None: for option_string in action.option_strings: print(option_string) - def parse_known_args(self, args: Any = None, namespace: Any = None) -> Tuple[Namespace, List[str]]: + def parse_known_args( # type: ignore + self, args: Optional[Sequence[str]] = None, namespace: Optional[Namespace] = None + ) -> Tuple[Namespace, List[str]]: for action in self._actions: env_name = None for option_string in action.option_strings: