Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 95547e5

Browse files
authored
Generalize the disallowed_untyped_defs in mypy.ini (#11322)
1 parent b64b6d1 commit 95547e5

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

changelog.d/11322.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add type hints to storage classes.

mypy.ini

+2-14
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,7 @@ disallow_untyped_defs = True
177177
[mypy-synapse.state.*]
178178
disallow_untyped_defs = True
179179

180-
[mypy-synapse.storage.databases.main.client_ips]
181-
disallow_untyped_defs = True
182-
183-
[mypy-synapse.storage.databases.main.room_batch]
184-
disallow_untyped_defs = True
185-
186-
[mypy-synapse.storage.databases.main.user_erasure_store]
187-
disallow_untyped_defs = True
188-
189-
[mypy-synapse.storage.util.*]
180+
[mypy-synapse.storage]
190181
disallow_untyped_defs = True
191182

192183
[mypy-synapse.streams.*]
@@ -279,10 +270,7 @@ disallow_untyped_defs = True
279270
[mypy-synapse.util.versionstring]
280271
disallow_untyped_defs = True
281272

282-
[mypy-tests.handlers.test_user_directory]
283-
disallow_untyped_defs = True
284-
285-
[mypy-tests.storage.test_user_directory]
273+
[mypy-tests]
286274
disallow_untyped_defs = True
287275

288276
;; Dependencies without annotations

0 commit comments

Comments
 (0)