diff options
-rw-r--r-- | synapse/storage/state.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py index 8c072886b2..2e7f0bd087 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -56,14 +56,15 @@ class StateFilter: appear in `types`. """ - types = attr.ib(type=frozendict[str, Optional[Set[str]]]) + types = attr.ib(type="frozendict[str, Optional[FrozenSet[str]]]") include_others = attr.ib(default=False, type=bool) def __attrs_post_init__(self): # If `include_others` is set we canonicalise the filter by removing # wildcards from the types dictionary if self.include_others: - self.types = frozendict( + # REVIEW: yucky + self.types = frozendict( # type: ignore[misc] # read-only {k: v for k, v in self.types.items() if v is not None} ) |