summary refs log tree commit diff
path: root/mypy.ini
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-04-27 08:44:53 -0400
committerGitHub <noreply@github.com>2023-04-27 12:44:53 +0000
commit6efa6740044bc240691115135660d901db358ce9 (patch)
treeeb0b6866dd5d8ac2365e67fb265282a28dd00a05 /mypy.ini
parentCheck databases/__init__ and main/cache with mypy. (#15496) (diff)
downloadsynapse-6efa6740044bc240691115135660d901db358ce9.tar.xz
Add type hints to schema deltas (#15497)
Cleans-up the schema delta files:

* Removes no-op functions.
* Adds missing type hints to function parameters.
* Fixes any issues with type hints.

This also renames one (very old) schema delta to avoid a conflict
that mypy complains about.
Diffstat (limited to 'mypy.ini')
-rw-r--r--mypy.ini10
1 files changed, 0 insertions, 10 deletions
diff --git a/mypy.ini b/mypy.ini
index 3b17c59dfc..5e7057cfb7 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -21,16 +21,6 @@ files =
   tests/,
   build_rust.py
 
-# Note: Better exclusion syntax coming in mypy > 0.910
-# https://github.com/python/mypy/pull/11329
-#
-# For now, set the (?x) flag enable "verbose" regexes
-# https://docs.python.org/3/library/re.html#re.X
-exclude = (?x)
-  ^(
-   |synapse/storage/schema/
-   )$
-
 [mypy-synapse.metrics._reactor_metrics]
 # This module imports select.epoll. That exists on Linux, but doesn't on macOS.
 # See https://github.com/matrix-org/synapse/pull/11771.