diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-11-17 09:09:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 09:09:40 -0500 |
commit | 473dfec1e56cd4115886ad273dba5594ae02ea8a (patch) | |
tree | 5b3c1257bc2105cb2119074aa5b3e1d699fc6b9a /synapse/events/spamcheck.py | |
parent | Add admin API for logging in as a user (#8617) (diff) | |
download | synapse-473dfec1e56cd4115886ad273dba5594ae02ea8a.tar.xz |
Use TYPE_CHECKING instead of magic MYPY variable. (#8770)
Diffstat (limited to 'synapse/events/spamcheck.py')
-rw-r--r-- | synapse/events/spamcheck.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/events/spamcheck.py b/synapse/events/spamcheck.py index bad18f7fdf..936896656a 100644 --- a/synapse/events/spamcheck.py +++ b/synapse/events/spamcheck.py @@ -15,13 +15,12 @@ # limitations under the License. import inspect -from typing import Any, Dict, List, Optional, Tuple +from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple from synapse.spam_checker_api import RegistrationBehaviour from synapse.types import Collection -MYPY = False -if MYPY: +if TYPE_CHECKING: import synapse.events import synapse.server |