Generalize the disallowed_untyped_defs in mypy.ini (#11322)

This commit is contained in:
Patrick Cloke 2021-11-12 09:27:45 -05:00 committed by GitHub
parent b64b6d12d4
commit 95547e5300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 14 deletions

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

@ -0,0 +1 @@
Add type hints to storage classes.

View File

@ -177,16 +177,7 @@ disallow_untyped_defs = True
[mypy-synapse.state.*]
disallow_untyped_defs = True
[mypy-synapse.storage.databases.main.client_ips]
disallow_untyped_defs = True
[mypy-synapse.storage.databases.main.room_batch]
disallow_untyped_defs = True
[mypy-synapse.storage.databases.main.user_erasure_store]
disallow_untyped_defs = True
[mypy-synapse.storage.util.*]
[mypy-synapse.storage]
disallow_untyped_defs = True
[mypy-synapse.streams.*]
@ -279,10 +270,7 @@ disallow_untyped_defs = True
[mypy-synapse.util.versionstring]
disallow_untyped_defs = True
[mypy-tests.handlers.test_user_directory]
disallow_untyped_defs = True
[mypy-tests.storage.test_user_directory]
[mypy-tests]
disallow_untyped_defs = True
;; Dependencies without annotations