mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 12:05:03 -04:00
Additional type hints for the config module, part 2. (#11480)
This commit is contained in:
parent
941ebe49ff
commit
0cc3bf97b4
5 changed files with 28 additions and 19 deletions
|
@ -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.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue