Use typing_extensions.Self instead of _typeshed.Self (#9702)

This commit is contained in:
Alex Waygood
2023-02-15 11:32:43 +01:00
committed by GitHub
parent 8cd6d81f15
commit 7180d0223b
140 changed files with 597 additions and 610 deletions

View File

@@ -1,6 +1,6 @@
from _typeshed import Self
from types import TracebackType
from typing import Any
from typing_extensions import Self
from . import _mysql, cursors
from ._exceptions import (
@@ -27,7 +27,7 @@ class Connection(_mysql.connection):
encoding: str
messages: Any
def __init__(self, *args, **kwargs) -> None: ...
def __enter__(self: Self) -> Self: ...
def __enter__(self) -> Self: ...
def __exit__(
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
) -> None: ...