mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 23:34:56 -04:00
Use auto_attribs/native type hints for attrs classes. (#11692)
This commit is contained in:
parent
b92a2ff797
commit
10a88ba91c
40 changed files with 300 additions and 307 deletions
|
@ -309,12 +309,12 @@ def gather_results( # type: ignore[misc]
|
|||
return deferred.addCallback(tuple)
|
||||
|
||||
|
||||
@attr.s(slots=True)
|
||||
@attr.s(slots=True, auto_attribs=True)
|
||||
class _LinearizerEntry:
|
||||
# The number of things executing.
|
||||
count = attr.ib(type=int)
|
||||
count: int
|
||||
# Deferreds for the things blocked from executing.
|
||||
deferreds = attr.ib(type=collections.OrderedDict)
|
||||
deferreds: collections.OrderedDict
|
||||
|
||||
|
||||
class Linearizer:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue