mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-19 23:09:55 +08:00
Replace Any with Incomplete in many places (#9558)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import distutils.core
|
||||
import sys
|
||||
import types
|
||||
from _typeshed import ReadableBuffer, WriteableBuffer
|
||||
from _typeshed import Incomplete, ReadableBuffer, WriteableBuffer
|
||||
from collections.abc import Callable, Hashable
|
||||
from typing import Any, TypeVar, overload
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
@@ -31,7 +31,7 @@ class FFI:
|
||||
def sizeof(self, cdecl: str | CData) -> int: ...
|
||||
def alignof(self, cdecl: str | CData) -> int: ...
|
||||
def offsetof(self, cdecl: str | CData, *fields_or_indexes: str | int) -> int: ...
|
||||
def new(self, cdecl: str | CType, init: Any | None = ...) -> CData: ...
|
||||
def new(self, cdecl: str | CType, init: Incomplete | None = ...) -> CData: ...
|
||||
def new_allocator(
|
||||
self,
|
||||
alloc: Callable[[int], CData] | None = ...,
|
||||
|
||||
Reference in New Issue
Block a user