Skip to content

Commit

Permalink
Add type hints to twisted.internet.defer
Browse files Browse the repository at this point in the history
  • Loading branch information
wsanchez committed Oct 14, 2020
1 parent 7359931 commit 2543e2f
Show file tree
Hide file tree
Showing 4 changed files with 419 additions and 312 deletions.
4 changes: 0 additions & 4 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,6 @@ check_untyped_defs = False
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.internet.defer]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.internet.endpoints]
allow_untyped_defs = True
check_untyped_defs = False
Expand Down
2 changes: 1 addition & 1 deletion src/twisted/internet/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def fireEvent(self) -> None:
"""
self.state = "BEFORE"
self.finishedBefore = []
beforeResults = [] # type: List[object]
beforeResults = [] # type: List[Deferred]
while self.before:
callable, args, kwargs = self.before.pop(0)
self.finishedBefore.append((callable, args, kwargs))
Expand Down
Loading

0 comments on commit 2543e2f

Please sign in to comment.