diff options
author | David Robertson <davidr@element.io> | 2022-05-11 14:43:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-11 13:43:22 +0000 |
commit | d38d242411b8910dfacde1e61fd3a0ec5cbcaa66 (patch) | |
tree | 8b23e7639236f73bf0b88c77a99a8a5d3be7b9a8 /synapse/config/_base.pyi | |
parent | Respect the `@cancellable` flag for `ReplicationEndpoint`s (#12700) (diff) | |
download | synapse-d38d242411b8910dfacde1e61fd3a0ec5cbcaa66.tar.xz |
Reload cache factors from disk on SIGHUP (#12673)
Diffstat (limited to 'synapse/config/_base.pyi')
-rw-r--r-- | synapse/config/_base.pyi | 15 |
1 files changed, 14 insertions, 1 deletions
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 |