diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-12-14 12:02:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 17:02:46 +0000 |
commit | 2519beaad25d2c824129c26eab10962773e643a6 (patch) | |
tree | e4a1eb70f5d960c7edf2486a03b27bc958edde55 /synapse/config | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-2519beaad25d2c824129c26eab10962773e643a6.tar.xz |
Add missing type hints to `synapse.appservice` (#11360)
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/appservice.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/config/appservice.py b/synapse/config/appservice.py index e4bb7224a4..7fad2e0422 100644 --- a/synapse/config/appservice.py +++ b/synapse/config/appservice.py @@ -147,8 +147,7 @@ def _load_appservice( # protocols check protocols = as_info.get("protocols") if protocols: - # Because strings are lists in python - if isinstance(protocols, str) or not isinstance(protocols, list): + if not isinstance(protocols, list): raise KeyError("Optional 'protocols' must be a list if present.") for p in protocols: if not isinstance(p, str): |