Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove type annotations
  • Loading branch information
graingert authored Jan 7, 2025
commit cc39717345e7af1c9f38dc3a16e919ef9764afd6
4 changes: 2 additions & 2 deletions Lib/test/test_asyncio/test_taskgroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def no_other_refs():
return [coro]


def set_gc_state(enabled: bool) -> bool:
def set_gc_state(enabled):
was_enabled = gc.isenabled()
if enabled:
gc.enable()
Expand All @@ -49,7 +49,7 @@ def set_gc_state(enabled: bool) -> bool:


@contextlib.contextmanager
def disable_gc() -> Generator[None]:
def disable_gc():
was_enabled = set_gc_state(enabled=False)
try:
yield
Expand Down