mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 01:38:40 +08:00
Replace Incomplete | None = None in third party stubs (#14063)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Callable, Mapping
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
@@ -66,7 +65,7 @@ _CustomTagsParser: TypeAlias = Callable[[str, int, dict[str, Any], dict[str, Any
|
||||
def loads(content: str, uri: str | None = None, custom_tags_parser: _CustomTagsParser | None = None) -> M3U8: ...
|
||||
def load(
|
||||
uri: str,
|
||||
timeout: Incomplete | None = None,
|
||||
timeout=None,
|
||||
headers: Mapping[str, Any] = {},
|
||||
custom_tags_parser: _CustomTagsParser | None = None,
|
||||
http_client: _HTTPClientProtocol = ...,
|
||||
|
||||
@@ -177,12 +177,12 @@ class PartialSegment(BasePathMixin):
|
||||
uri: str | None,
|
||||
duration: float | None,
|
||||
program_date_time: dt.datetime | None = None,
|
||||
current_program_date_time: Incomplete | None = None,
|
||||
byterange: Incomplete | None = None,
|
||||
independent: Incomplete | None = None,
|
||||
gap: Incomplete | None = None,
|
||||
current_program_date_time=None,
|
||||
byterange=None,
|
||||
independent=None,
|
||||
gap=None,
|
||||
dateranges: list[Mapping[str, Incomplete]] | None = None,
|
||||
gap_tag: Incomplete | None = None,
|
||||
gap_tag=None,
|
||||
) -> None: ...
|
||||
def dumps(self, last_segment) -> str: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user