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

Commit

Permalink
Rollback #11322 due to wrong syntax in mypy.ini. (#11332)
Browse files Browse the repository at this point in the history
This was only checking the __init__ files in modules instead of
all files in a module, which don't pass yet.
  • Loading branch information
clokep authored Nov 12, 2021
1 parent bea815c commit 3fad4e3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/11332.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add type hints to storage classes.
16 changes: 14 additions & 2 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,16 @@ disallow_untyped_defs = True
[mypy-synapse.state.*]
disallow_untyped_defs = True

[mypy-synapse.storage]
[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.*]
disallow_untyped_defs = True

[mypy-synapse.streams.*]
Expand Down Expand Up @@ -268,7 +277,10 @@ disallow_untyped_defs = True
[mypy-synapse.util.versionstring]
disallow_untyped_defs = True

[mypy-tests]
[mypy-tests.handlers.test_user_directory]
disallow_untyped_defs = True

[mypy-tests.storage.test_user_directory]
disallow_untyped_defs = True

[mypy-tests.rest.client.test_directory]
Expand Down

0 comments on commit 3fad4e3

Please sign in to comment.