diff --git a/synapse/config/_base.pyi b/synapse/config/_base.pyi
index bd092f956d..71d6655fda 100644
--- a/synapse/config/_base.pyi
+++ b/synapse/config/_base.pyi
@@ -1,15 +1,19 @@
import argparse
from typing import (
Any,
+ Collection,
Dict,
Iterable,
+ Iterator,
List,
+ Literal,
MutableMapping,
Optional,
Tuple,
Type,
TypeVar,
Union,
+ overload,
)
import jinja2
@@ -64,6 +68,8 @@ class ConfigError(Exception):
self.msg = msg
self.path = path
+def format_config_error(e: ConfigError) -> Iterator[str]: ...
+
MISSING_REPORT_STATS_CONFIG_INSTRUCTIONS: str
MISSING_REPORT_STATS_SPIEL: str
MISSING_SERVER_NAME: str
@@ -117,7 +123,8 @@ class RootConfig:
background_updates: background_updates.BackgroundUpdateConfig
config_classes: List[Type["Config"]] = ...
- def __init__(self) -> None: ...
+ config_files: List[str]
+ def __init__(self, config_files: Collection[str] = ...) -> None: ...
def invoke_all(
self, func_name: str, *args: Any, **kwargs: Any
) -> MutableMapping[str, Any]: ...
@@ -157,6 +164,12 @@ class RootConfig:
def generate_missing_files(
self, config_dict: dict, config_dir_path: str
) -> None: ...
+ @overload
+ def reload_config_section(
+ self, section_name: Literal["caches"]
+ ) -> cache.CacheConfig: ...
+ @overload
+ def reload_config_section(self, section_name: str) -> Config: ...
class Config:
root: RootConfig
|