mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-25 02:04:04 +08:00
Replace Incomplete | None = None in stdlib (#14083)
This commit is contained in:
@@ -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,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): ...
|
||||
|
||||
Reference in New Issue
Block a user