mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-03 06:28:28 +08:00
Add @disjoint_base decorator to the third-party stubs (#14716)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user