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
+2 -1
View File
@@ -3,7 +3,7 @@ import types
from _typeshed import Incomplete, ReadableBuffer, WriteableBuffer
from collections.abc import Callable, Hashable
from typing import Any, ClassVar, Literal, Protocol, SupportsIndex, TypeVar, final, overload, type_check_only
from typing_extensions import Self, TypeAlias
from typing_extensions import Self, TypeAlias, disjoint_base
_T = TypeVar("_T")
@@ -111,6 +111,7 @@ class buffer:
_tmp_CType = CType
_tmp_buffer = buffer
@disjoint_base
class FFI:
CData: TypeAlias = _CDataBase
CType: TypeAlias = _tmp_CType