Replace Incomplete | None = None in stdlib (#14083)

This commit is contained in:
Sebastian Rittau
2025-05-16 15:43:52 +02:00
committed by GitHub
parent 5785616f7a
commit 0125fe2848
12 changed files with 50 additions and 62 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
from _typeshed import Incomplete, StrOrBytesPath
from _typeshed import StrOrBytesPath
from collections.abc import Sequence
from re import Pattern
from typing import ClassVar, Final, Literal
@@ -81,4 +81,4 @@ class config(Command):
self, header: str, include_dirs: Sequence[str] | None = None, library_dirs: Sequence[str] | None = None, lang: str = "c"
) -> bool: ...
def dump_file(filename: StrOrBytesPath, head: Incomplete | None = None) -> None: ...
def dump_file(filename: StrOrBytesPath, head=None) -> None: ...
+1 -2
View File
@@ -1,4 +1,3 @@
from _typeshed import Incomplete
from collections.abc import Callable
from typing import Any, ClassVar
@@ -18,4 +17,4 @@ class register(PyPIRCCommand):
def verify_metadata(self) -> None: ...
def send_metadata(self) -> None: ...
def build_post_data(self, action): ...
def post_to_server(self, data, auth: Incomplete | None = None): ...
def post_to_server(self, data, auth=None): ...