Replace Any with Incomplete in many places (#9558)

This commit is contained in:
Alex Waygood
2023-01-18 08:48:16 +00:00
committed by GitHub
parent ddfaca3200
commit 4fea314594
460 changed files with 3779 additions and 2909 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import builtins
import ctypes
import sys
from _typeshed import Self
from _typeshed import Incomplete, Self
from types import TracebackType
from typing import Any
@@ -33,7 +33,7 @@ if sys.platform == "win32":
pos: int
filemap: Any = ...
view: Any = ...
def __init__(self, name: str, length: int, security_attributes: Any | None = ...) -> None: ...
def __init__(self, name: str, length: int, security_attributes: Incomplete | None = ...) -> None: ...
def __enter__(self: Self) -> Self: ...
def seek(self, pos: int) -> None: ...
def write(self, msg: bytes) -> None: ...