diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-12-16 08:53:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-16 08:53:28 -0500 |
commit | 3aeca2588b79111a48a6083c88efc4d68a2cea19 (patch) | |
tree | cd1850aba9ddcb05a9b357541a5c20b6ca617b99 /synapse/config | |
parent | Improve type annotations for the helper methods on a `CachedFunction`. (#14685) (diff) | |
download | synapse-3aeca2588b79111a48a6083c88efc4d68a2cea19.tar.xz |
Add missing type hints to tests.config. (#14681)
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/cache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/config/cache.py b/synapse/config/cache.py index eb4194a5a9..015b2a138e 100644 --- a/synapse/config/cache.py +++ b/synapse/config/cache.py @@ -16,7 +16,7 @@ import logging import os import re import threading -from typing import Any, Callable, Dict, Optional +from typing import Any, Callable, Dict, Mapping, Optional import attr @@ -94,7 +94,7 @@ def add_resizable_cache( class CacheConfig(Config): section = "caches" - _environ = os.environ + _environ: Mapping[str, str] = os.environ event_cache_size: int cache_factors: Dict[str, float] |