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
+5 -6
View File
@@ -1,6 +1,5 @@
from _typeshed import Self
from typing import Any, overload
from typing_extensions import final
from typing_extensions import Self, final
ATTR_CASE: int
CASE_LOWER: int
@@ -85,7 +84,7 @@ WCHAR_YES: int
@final
class IBM_DBClientInfo:
def __new__(cls: type[Self], *args: object, **kwargs: object) -> Self: ...
def __new__(cls, *args: object, **kwargs: object) -> Self: ...
APPL_CODEPAGE: int
CONN_CODEPAGE: int
DATA_SOURCE_NAME: str
@@ -97,11 +96,11 @@ class IBM_DBClientInfo:
@final
class IBM_DBConnection:
def __new__(cls: type[Self], *args: object, **kwargs: object) -> Self: ...
def __new__(cls, *args: object, **kwargs: object) -> Self: ...
@final
class IBM_DBServerInfo:
def __new__(cls: type[Self], *args: object, **kwargs: object) -> Self: ...
def __new__(cls, *args: object, **kwargs: object) -> Self: ...
DBMS_NAME: str
DBMS_VER: str
DB_CODEPAGE: int
@@ -127,7 +126,7 @@ class IBM_DBServerInfo:
@final
class IBM_DBStatement:
def __new__(cls: type[Self], *args: object, **kwargs: object) -> Self: ...
def __new__(cls, *args: object, **kwargs: object) -> Self: ...
def active(__connection: IBM_DBConnection | None) -> bool: ...
def autocommit(__connection: IBM_DBConnection, __value: int = ...) -> int | bool: ...