Refactor HomeserverConfig so it can be typechecked (#6137)

This commit is contained in:
Amber Brown 2019-10-10 09:39:35 +01:00 committed by GitHub
parent def5413480
commit f743108a94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 415 additions and 94 deletions

View file

@ -17,6 +17,8 @@ from ._base import Config
class GroupsConfig(Config):
section = "groups"
def read_config(self, config, **kwargs):
self.enable_group_creation = config.get("enable_group_creation", False)
self.group_creation_prefix = config.get("group_creation_prefix", "")