mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Add @disjoint_base decorator in the stdlib (#14599)
And fix some other new stubtest finds.
This commit is contained in:
+2
-1
@@ -3,7 +3,7 @@ from _typeshed import ReadableBuffer, WriteableBuffer
|
||||
from collections.abc import Iterable
|
||||
from socket import error as error, gaierror as gaierror, herror as herror, timeout as timeout
|
||||
from typing import Any, Final, SupportsIndex, overload
|
||||
from typing_extensions import CapsuleType, TypeAlias
|
||||
from typing_extensions import CapsuleType, TypeAlias, disjoint_base
|
||||
|
||||
_CMSG: TypeAlias = tuple[int, int, bytes]
|
||||
_CMSGArg: TypeAlias = tuple[int, int, ReadableBuffer]
|
||||
@@ -731,6 +731,7 @@ if sys.platform != "win32" and sys.platform != "darwin":
|
||||
|
||||
# ===== Classes =====
|
||||
|
||||
@disjoint_base
|
||||
class socket:
|
||||
@property
|
||||
def family(self) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user