Skip to content

Commit

Permalink
make _Interceptor not abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Dec 15, 2024
1 parent 43b9979 commit 143cf3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion taskgroup/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import collections.abc
import contextvars
from typing import Any, Optional, Union
from typing_extensions import TypeAlias, TypeVar
from typing_extensions import TypeAlias, TypeVar, Self
import sys

_YieldT_co = TypeVar("_YieldT_co", covariant=True)
Expand Down Expand Up @@ -50,6 +50,9 @@ def throw(self, *exc_info) -> _YieldT_co:
def __getattr__(self, name):
return getattr(self.__coro, name)

def __await__(self) -> Self:
return self

def close(self) -> None:
super().close()

Expand Down

0 comments on commit 143cf3d

Please sign in to comment.