mirror of
https://github.com/element-hq/synapse.git
synced 2026-05-01 01:25:47 +00:00
Use type hinting generics in standard collections (#19046)
aka PEP 585, added in Python 3.9 - https://peps.python.org/pep-0585/ - https://docs.astral.sh/ruff/rules/non-pep585-annotation/
This commit is contained in:
committed by
GitHub
parent
cba3a814c6
commit
fc244bb592
@@ -21,7 +21,7 @@
|
||||
import importlib
|
||||
import importlib.util
|
||||
from types import ModuleType
|
||||
from typing import Any, Tuple, Type
|
||||
from typing import Any
|
||||
|
||||
import jsonschema
|
||||
|
||||
@@ -30,7 +30,7 @@ from synapse.config._util import json_error_to_config_error
|
||||
from synapse.types import StrSequence
|
||||
|
||||
|
||||
def load_module(provider: dict, config_path: StrSequence) -> Tuple[Type, Any]:
|
||||
def load_module(provider: dict, config_path: StrSequence) -> tuple[type, Any]:
|
||||
"""Loads a synapse module with its config
|
||||
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user