Explicit disabling of disallowed_untyped_defs. (#15026)

To make it easier to see which files still need to be fixed.
This commit is contained in:
Patrick Cloke 2023-02-08 13:49:18 -05:00 committed by GitHub
parent c951fbedcb
commit 975f7ba904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 58 deletions

1
changelog.d/15026.misc Normal file
View File

@ -0,0 +1 @@
Improve type hints.

View File

@ -60,81 +60,48 @@ disallow_untyped_defs = False
[mypy-synapse.storage.database] [mypy-synapse.storage.database]
disallow_untyped_defs = False disallow_untyped_defs = False
[mypy-tests.*] [mypy-tests.scripts.test_new_matrix_user]
disallow_untyped_defs = False disallow_untyped_defs = False
[mypy-tests.api.*] [mypy-tests.server_notices.test_consent]
disallow_untyped_defs = True disallow_untyped_defs = False
[mypy-tests.app.*] [mypy-tests.server_notices.test_resource_limits_server_notices]
disallow_untyped_defs = True disallow_untyped_defs = False
[mypy-tests.appservice.*] [mypy-tests.test_distributor]
disallow_untyped_defs = True disallow_untyped_defs = False
[mypy-tests.config.*] [mypy-tests.test_event_auth]
disallow_untyped_defs = True disallow_untyped_defs = False
[mypy-tests.crypto.*] [mypy-tests.test_federation]
disallow_untyped_defs = True disallow_untyped_defs = False
[mypy-tests.events.*] [mypy-tests.test_mau]
disallow_untyped_defs = True disallow_untyped_defs = False
[mypy-tests.federation.*] [mypy-tests.test_rust]
disallow_untyped_defs = True disallow_untyped_defs = False
[mypy-tests.handlers.*] [mypy-tests.test_test_utils]
disallow_untyped_defs = True disallow_untyped_defs = False
[mypy-tests.http.*] [mypy-tests.test_types]
disallow_untyped_defs = True disallow_untyped_defs = False
[mypy-tests.logging.*] [mypy-tests.test_utils.*]
disallow_untyped_defs = True disallow_untyped_defs = False
[mypy-tests.metrics.*] [mypy-tests.test_visibility]
disallow_untyped_defs = True disallow_untyped_defs = False
[mypy-tests.push.*] [mypy-tests.unittest]
disallow_untyped_defs = True disallow_untyped_defs = False
[mypy-tests.replication.*]
disallow_untyped_defs = True
[mypy-tests.rest.*]
disallow_untyped_defs = True
[mypy-tests.state.test_profile]
disallow_untyped_defs = True
[mypy-tests.storage.*]
disallow_untyped_defs = True
[mypy-tests.test_server]
disallow_untyped_defs = True
[mypy-tests.test_state]
disallow_untyped_defs = True
[mypy-tests.test_terms_auth]
disallow_untyped_defs = True
[mypy-tests.types.*]
disallow_untyped_defs = True
[mypy-tests.util.caches.*]
disallow_untyped_defs = True
[mypy-tests.util.caches.test_descriptors] [mypy-tests.util.caches.test_descriptors]
disallow_untyped_defs = False disallow_untyped_defs = False
[mypy-tests.util.*]
disallow_untyped_defs = True
[mypy-tests.utils]
disallow_untyped_defs = True
;; Dependencies without annotations ;; Dependencies without annotations
;; Before ignoring a module, check to see if type stubs are available. ;; Before ignoring a module, check to see if type stubs are available.
;; The `typeshed` project maintains stubs here: ;; The `typeshed` project maintains stubs here: