mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 10:34:56 -04:00
Enable mypy checking for unreachable code and fix instances. (#8432)
This commit is contained in:
parent
c1ef579b63
commit
4ff0201e62
17 changed files with 38 additions and 53 deletions
|
@ -87,7 +87,7 @@ class SyncConfig:
|
|||
class TimelineBatch:
|
||||
prev_batch = attr.ib(type=StreamToken)
|
||||
events = attr.ib(type=List[EventBase])
|
||||
limited = attr.ib(bool)
|
||||
limited = attr.ib(type=bool)
|
||||
|
||||
def __bool__(self) -> bool:
|
||||
"""Make the result appear empty if there are no updates. This is used
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue