Skip to content

Commit

Permalink
upgrade pyre version in fbcode/later - batch 1
Browse files Browse the repository at this point in the history
Differential Revision: D60992584

fbshipit-source-id: 0b70b2d025fc721b17bbd19d8a9b3edd6129c96d
  • Loading branch information
generatedunixname89002005307016 authored and facebook-github-bot committed Aug 9, 2024
1 parent 6c281b8 commit 6f2692e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion later/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ class WatcherError(RuntimeError):
pass


# pyre-fixme[13]: Attribute `loop` is never initialized.
class Watcher:
_tasks: Dict[asyncio.Future, Optional[FixerType]]
_scheduled: List[FixerType]
Expand All @@ -162,6 +161,7 @@ class Watcher:
_cancel_timeout: float
_preexit_callbacks: List[Callable[[], None]]
_shielded_tasks: Dict[asyncio.Task, asyncio.Future]
# pyre-fixme[13]: Attribute `loop` is never initialized.
loop: asyncio.AbstractEventLoop
running: bool
done_ok: bool
Expand Down
2 changes: 2 additions & 0 deletions later/unittest/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ def exception(self) -> BaseException | None:
self._mark_managed()
return super().exception()

# pyre-fixme[14]: `add_done_callback` overrides method defined in `Future`
# inconsistently.
def add_done_callback(
self, fn: Callable[[asyncio.Task], None], *, context: Context | None = None
) -> None:
Expand Down

0 comments on commit 6f2692e

Please sign in to comment.