diff options
author | Erik Johnston <erik@matrix.org> | 2023-01-12 10:52:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-12 10:52:07 +0000 |
commit | b50c008453001aee8dd7dbd6f36ec32039e6ce76 (patch) | |
tree | 504eda353912088f59a27f80d0c7a2f2217b4725 /synapse | |
parent | Add `set_displayname` to the module API (#14629) (diff) | |
download | synapse-b50c008453001aee8dd7dbd6f36ec32039e6ce76.tar.xz |
Re-enable some linting (#14821)
* Re-enable some linting * Newsfile * Remove comment
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/config/_base.pyi | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/synapse/config/_base.pyi b/synapse/config/_base.pyi index bd265de536..b5cec132b4 100644 --- a/synapse/config/_base.pyi +++ b/synapse/config/_base.pyi @@ -1,5 +1,3 @@ -from __future__ import annotations - import argparse from typing import ( Any, @@ -20,7 +18,7 @@ from typing import ( import jinja2 -from synapse.config import ( +from synapse.config import ( # noqa: F401 account_validity, api, appservice, @@ -169,7 +167,7 @@ class RootConfig: self, section_name: Literal["caches"] ) -> cache.CacheConfig: ... @overload - def reload_config_section(self, section_name: str) -> Config: ... + def reload_config_section(self, section_name: str) -> "Config": ... class Config: root: RootConfig @@ -202,9 +200,9 @@ def find_config_files(search_paths: List[str]) -> List[str]: ... class ShardedWorkerHandlingConfig: instances: List[str] def __init__(self, instances: List[str]) -> None: ... - def should_handle(self, instance_name: str, key: str) -> bool: ... + def should_handle(self, instance_name: str, key: str) -> bool: ... # noqa: F811 class RoutableShardedWorkerHandlingConfig(ShardedWorkerHandlingConfig): - def get_instance(self, key: str) -> str: ... + def get_instance(self, key: str) -> str: ... # noqa: F811 def read_file(file_path: Any, config_path: Iterable[str]) -> str: ... |