Replace Any with Incomplete in many places (#9558)

This commit is contained in:
Alex Waygood authored and GitHub committed 2023-01-18 08:48:16 +00:00
1 parent ddfaca3200
commit 4fea314594
460 files changed
+3779 -2909

No files matched your search

+2 -2
View File
@@ -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 = ...,