mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 19:32:13 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -9,7 +9,7 @@ class Version:
|
||||
def __gt__(self: Self, other: Self | str) -> bool: ...
|
||||
def __ge__(self: Self, other: Self | str) -> bool: ...
|
||||
@abstractmethod
|
||||
def __init__(self, vstring: str | None = ...) -> None: ...
|
||||
def __init__(self, vstring: str | None = None) -> None: ...
|
||||
@abstractmethod
|
||||
def parse(self: Self, vstring: str) -> Self: ...
|
||||
@abstractmethod
|
||||
@@ -21,7 +21,7 @@ class StrictVersion(Version):
|
||||
version_re: Pattern[str]
|
||||
version: tuple[int, int, int]
|
||||
prerelease: tuple[str, int] | None
|
||||
def __init__(self, vstring: str | None = ...) -> None: ...
|
||||
def __init__(self, vstring: str | None = None) -> None: ...
|
||||
def parse(self: Self, vstring: str) -> Self: ...
|
||||
def __str__(self) -> str: ... # noqa: Y029
|
||||
def _cmp(self: Self, other: Self | str) -> bool: ...
|
||||
@@ -30,7 +30,7 @@ class LooseVersion(Version):
|
||||
component_re: Pattern[str]
|
||||
vstring: str
|
||||
version: tuple[str | int, ...]
|
||||
def __init__(self, vstring: str | None = ...) -> None: ...
|
||||
def __init__(self, vstring: str | None = None) -> None: ...
|
||||
def parse(self: Self, vstring: str) -> Self: ...
|
||||
def __str__(self) -> str: ... # noqa: Y029
|
||||
def _cmp(self: Self, other: Self | str) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user