summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2022-11-17 18:34:09 +0000
committerGitHub <noreply@github.com>2022-11-17 18:34:09 +0000
commitae22e6e94f61b28715950d8a6c04c6ac44ac150d (patch)
tree90f4c431f9dd0d4fa48e47fcc75b63c3a338c21b
parentFix version that `worker_main_http_uri` is redundant from (#14476) (diff)
downloadsynapse-ae22e6e94f61b28715950d8a6c04c6ac44ac150d.tar.xz
Enable 'strict_equality' checking for mypy (#14452)
-rw-r--r--changelog.d/14452.misc1
-rw-r--r--mypy.ini1
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/14452.misc b/changelog.d/14452.misc
new file mode 100644
index 0000000000..cb190c0823
--- /dev/null
+++ b/changelog.d/14452.misc
@@ -0,0 +1 @@
+Enable mypy's [`strict_equality` check](https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-strict-equality) by default.
\ No newline at end of file
diff --git a/mypy.ini b/mypy.ini
index 53512b2584..4cd61e0484 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -11,6 +11,7 @@ warn_unused_ignores = True
 local_partial_types = True
 no_implicit_optional = True
 disallow_untyped_defs = True
+strict_equality = True
 
 files =
   docker/,