typing: Set remaining 'disallow_*' opts to 'true'

We need two ignores due to incomplete type hints for requests, but this
is otherwise a straightforward swap.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I0b0d2d50fa3b70184785a6d146902dafab561654
This commit is contained in:
Stephen Finucane 2024-10-21 12:54:15 +01:00
parent 2fbac42544
commit 8f58f5b7b9
3 changed files with 8 additions and 5 deletions

View File

@ -143,7 +143,7 @@ class _SamlAuth(requests.auth.AuthBase):
request.headers['Accept'] = ','.join([accept, _PAOS_HEADER])
request.headers['PAOS'] = _PAOS_VER
request.register_hook('response', self._handle_response)
request.register_hook('response', self._handle_response) # type: ignore[no-untyped-call]
return request
def _handle_response(

View File

@ -1689,4 +1689,4 @@ class TCPKeepAliveAdapter(requests.adapters.HTTPAdapter):
# hands for no longer than 2 minutes before a ConnectionError is
# raised.
kwargs['socket_options'] = socket_options
super().init_poolmanager(*args, **kwargs)
super().init_poolmanager(*args, **kwargs) # type: ignore[no-untyped-call]

View File

@ -85,9 +85,8 @@ strict_equality = true
strict_concatenate = true
disallow_untyped_decorators = true
disallow_any_generics = true
# the following are false while we incrementally add typing
disallow_subclassing_any = false
disallow_untyped_calls = false
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_reexport = true
@ -103,7 +102,11 @@ exclude = (?x)(
ignore_errors = true
[mypy-keystoneauth1.hacking.*]
disallow_subclassing_any = false
disallow_untyped_defs = false
disallow_untyped_calls = false
[mypy-keystoneauth1.fixture.*]
disallow_subclassing_any = false
disallow_untyped_defs = false
disallow_untyped_calls = false