8000 stdlib: Add several missing `@abstractmethod` decorators by AlexWaygood · Pull Request #7443 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

stdlib: Add several missing @abstractmethod decorators #7443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Mar 7, 2022
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
Revert! Revert!
  • Loading branch information
AlexWaygood authored Mar 7, 2022
commit ee35c1892058238cfab19aab9f217f4608a4e572
4 changes: 2 additions & 2 deletions stdlib/contextlib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ if sys.version_info >= (3, 10):
kwds: dict[str, Any]
async def __aexit__(
self, typ: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None
) -> bool: ...
) -> bool | None: ...

elif sys.version_info >= (3, 7):
class _AsyncGeneratorContextManager(AbstractAsyncContextManager[_T_co], Generic[_T_co]):
Expand All @@ -139,7 +139,7 @@ elif sys.version_info >= (3, 7):
kwds: dict[str, Any]
async def __aexit__(
self, typ: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None
) -> bool: ...
) -> bool | None: ...

if sys.version_info >= (3, 7):
def asynccontextmanager(func: Callable[_P, AsyncIterator[_T_co]]) -> Callable[_P, _AsyncGeneratorContextManager[_T_co]]: ...
Expand Down
0