mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
Use TYPE_CHECKING instead of magic MYPY variable. (#8770)
This commit is contained in:
parent
f737368a26
commit
473dfec1e5
4 changed files with 7 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue