mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 18:33:51 +01:00
Generalize the disallowed_untyped_defs in mypy.ini (#11322)
This commit is contained in:
parent
b64b6d12d4
commit
95547e5300
2 changed files with 3 additions and 14 deletions
1
changelog.d/11322.misc
Normal file
1
changelog.d/11322.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Add type hints to storage classes.
|
16
mypy.ini
16
mypy.ini
|
@ -177,16 +177,7 @@ disallow_untyped_defs = True
|
||||||
[mypy-synapse.state.*]
|
[mypy-synapse.state.*]
|
||||||
disallow_untyped_defs = True
|
disallow_untyped_defs = True
|
||||||
|
|
||||||
[mypy-synapse.storage.databases.main.client_ips]
|
[mypy-synapse.storage]
|
||||||
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.*]
|
|
||||||
disallow_untyped_defs = True
|
disallow_untyped_defs = True
|
||||||
|
|
||||||
[mypy-synapse.streams.*]
|
[mypy-synapse.streams.*]
|
||||||
|
@ -279,10 +270,7 @@ disallow_untyped_defs = True
|
||||||
[mypy-synapse.util.versionstring]
|
[mypy-synapse.util.versionstring]
|
||||||
disallow_untyped_defs = True
|
disallow_untyped_defs = True
|
||||||
|
|
||||||
[mypy-tests.handlers.test_user_directory]
|
[mypy-tests]
|
||||||
disallow_untyped_defs = True
|
|
||||||
|
|
||||||
[mypy-tests.storage.test_user_directory]
|
|
||||||
disallow_untyped_defs = True
|
disallow_untyped_defs = True
|
||||||
|
|
||||||
;; Dependencies without annotations
|
;; Dependencies without annotations
|
||||||
|
|
Loading…
Reference in a new issue