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
Next Next commit
Add explicit return type for __init__()
  • Loading branch information
gvanrossum committed Feb 16, 2022
commit 84a0f30c8402fccddca2f0e940955f25d5f2bb7f
2 changes: 1 addition & 1 deletion stdlib/asyncio/taskgroups.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ _T = TypeVar("_T")

if sys.version_info >= (3, 11):
Comment thread
gvanrossum marked this conversation as resolved.
Outdated
class TaskGroup:
def __init__(self, name: str | None = ...): ...
def __init__(self, name: str | None = ...) -> None: ...
Comment thread
gvanrossum marked this conversation as resolved.
Outdated
def get_name(self) -> str: ...
def __aenter__(self) -> TaskGroup: ...
def __aexit__(self, et: type | None, exc: BaseException | None, tb: TracebackType | None) -> None: ...
Expand Down