From 3fad4e3fe508742bbf60274f26794dbffca9e937 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Fri, 12 Nov 2021 15:10:03 -0500 Subject: Rollback #11322 due to wrong syntax in mypy.ini. (#11332) This was only checking the __init__ files in modules instead of all files in a module, which don't pass yet. --- changelog.d/11332.misc | 1 + mypy.ini | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 changelog.d/11332.misc diff --git a/changelog.d/11332.misc b/changelog.d/11332.misc new file mode 100644 index 0000000000..86594a332d --- /dev/null +++ b/changelog.d/11332.misc @@ -0,0 +1 @@ +Add type hints to storage classes. diff --git a/mypy.ini b/mypy.ini index 67dde5991b..108e1e895c 100644 --- a/mypy.ini +++ b/mypy.ini @@ -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.*] @@ -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] -- cgit 1.4.1