Big diff: Use new "|" union syntax (#5872)

This commit is contained in:
Akuli
2021-08-08 12:05:21 +03:00
committed by GitHub
parent b9adb7a874
commit ee487304d7
578 changed files with 8080 additions and 8966 deletions

View File

@@ -1,38 +1,38 @@
from abc import abstractmethod
from typing import Optional, Pattern, Tuple, TypeVar, Union
from typing import Pattern, Tuple, TypeVar
_T = TypeVar("_T", bound=Version)
class Version:
def __repr__(self) -> str: ...
def __eq__(self, other: object) -> bool: ...
def __lt__(self: _T, other: Union[_T, str]) -> bool: ...
def __le__(self: _T, other: Union[_T, str]) -> bool: ...
def __gt__(self: _T, other: Union[_T, str]) -> bool: ...
def __ge__(self: _T, other: Union[_T, str]) -> bool: ...
def __lt__(self: _T, other: _T | str) -> bool: ...
def __le__(self: _T, other: _T | str) -> bool: ...
def __gt__(self: _T, other: _T | str) -> bool: ...
def __ge__(self: _T, other: _T | str) -> bool: ...
@abstractmethod
def __init__(self, vstring: Optional[str] = ...) -> None: ...
def __init__(self, vstring: str | None = ...) -> None: ...
@abstractmethod
def parse(self: _T, vstring: str) -> _T: ...
@abstractmethod
def __str__(self) -> str: ...
@abstractmethod
def _cmp(self: _T, other: Union[_T, str]) -> bool: ...
def _cmp(self: _T, other: _T | str) -> bool: ...
class StrictVersion(Version):
version_re: Pattern[str]
version: Tuple[int, int, int]
prerelease: Optional[Tuple[str, int]]
def __init__(self, vstring: Optional[str] = ...) -> None: ...
prerelease: Tuple[str, int] | None
def __init__(self, vstring: str | None = ...) -> None: ...
def parse(self: _T, vstring: str) -> _T: ...
def __str__(self) -> str: ...
def _cmp(self: _T, other: Union[_T, str]) -> bool: ...
def _cmp(self: _T, other: _T | str) -> bool: ...
class LooseVersion(Version):
component_re: Pattern[str]
vstring: str
version: Tuple[Union[str, int], ...]
def __init__(self, vstring: Optional[str] = ...) -> None: ...
version: Tuple[str | int, ...]
def __init__(self, vstring: str | None = ...) -> None: ...
def parse(self: _T, vstring: str) -> _T: ...
def __str__(self) -> str: ...
def _cmp(self: _T, other: Union[_T, str]) -> bool: ...
def _cmp(self: _T, other: _T | str) -> bool: ...