Add @disjoint_base decorator to the third-party stubs (#14716)

This commit is contained in:
Brian Schubert
2025-09-15 02:16:16 +02:00
committed by GitHub
parent 0d100b9110
commit 47dbbd6c91
27 changed files with 110 additions and 24 deletions
+4 -3
View File
@@ -4,7 +4,7 @@ from _typeshed import Incomplete
from collections.abc import Sequence
from datetime import datetime
from typing import ClassVar, Final, NoReturn, SupportsInt, overload
from typing_extensions import Never, deprecated
from typing_extensions import Never, deprecated, disjoint_base
import _win32typing
@@ -16,8 +16,9 @@ class error(Exception):
class com_error(Exception): ...
class HANDLEType:
def __new__(self, *args: Never) -> NoReturn: ...
@disjoint_base
class HANDLEType: # type: ignore[type-var]
def __new__(cls, *args: Never) -> NoReturn: ...
@property
def handle(self) -> int: ...
def Close(self) -> None: ...