diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-12-09 11:15:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 16:15:46 +0000 |
commit | 0cc3bf97b4399234cf20f52ae4c09d03661225ff (patch) | |
tree | bdaed7ffc6750e25962a30242ac1c30b0883257e /synapse/config/metrics.py | |
parent | Use HTTPStatus constants in place of literals in `synapse.http` (#11543) (diff) | |
download | synapse-0cc3bf97b4399234cf20f52ae4c09d03661225ff.tar.xz |
Additional type hints for the config module, part 2. (#11480)
Diffstat (limited to 'synapse/config/metrics.py')
-rw-r--r-- | synapse/config/metrics.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/config/metrics.py b/synapse/config/metrics.py index 7ac82edb0e..1cc26e7578 100644 --- a/synapse/config/metrics.py +++ b/synapse/config/metrics.py @@ -22,10 +22,12 @@ from ._base import Config, ConfigError @attr.s class MetricsFlags: - known_servers = attr.ib(default=False, validator=attr.validators.instance_of(bool)) + known_servers: bool = attr.ib( + default=False, validator=attr.validators.instance_of(bool) + ) @classmethod - def all_off(cls): + def all_off(cls) -> "MetricsFlags": """ Instantiate the flags with all options set to off. """ |