diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2024-03-13 17:05:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 17:05:57 +0000 |
commit | e161103b46e9e85b95575ad12b34eb7ec570e0a4 (patch) | |
tree | 968de33935c76f2d2e0c560819684e7859a067f6 /synapse/streams/events.py | |
parent | Bump dawidd6/action-download-artifact from 3.1.1 to 3.1.2 (#16960) (diff) | |
download | synapse-e161103b46e9e85b95575ad12b34eb7ec570e0a4.tar.xz |
Bump mypy from 1.5.1 to 1.8.0 (#16901)
Diffstat (limited to 'synapse/streams/events.py')
-rw-r--r-- | synapse/streams/events.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/synapse/streams/events.py b/synapse/streams/events.py index 7466488157..dd7401ac8e 100644 --- a/synapse/streams/events.py +++ b/synapse/streams/events.py @@ -57,12 +57,13 @@ class _EventSourcesInner: class EventSources: def __init__(self, hs: "HomeServer"): self.sources = _EventSourcesInner( - # mypy previously warned that attribute.type is `Optional`, but we know it's + # attribute.type is `Optional`, but we know it's # never `None` here since all the attributes of `_EventSourcesInner` are # annotated. - # As of the stubs in attrs 22.1.0, `attr.fields()` now returns Any, - # so the call to `attribute.type` is not checked. - *(attribute.type(hs) for attribute in attr.fields(_EventSourcesInner)) + *( + attribute.type(hs) # type: ignore[misc] + for attribute in attr.fields(_EventSourcesInner) + ) ) self.store = hs.get_datastores().main self._instance_name = hs.get_instance_name() |