Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 17 additions & 14 deletions src/numpy-stubs/lib/_version.pyi
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
from typing import Final

__all__ = ["NumpyVersion"]

class NumpyVersion:
vstring: str
version: str
major: int
minor: int
bugfix: int
pre_release: str
is_devversion: bool
def __init__(self, vstring: str) -> None: ...
def __lt__(self, other: str | NumpyVersion) -> bool: ...
def __le__(self, other: str | NumpyVersion) -> bool: ...
def __eq__(self, other: str | NumpyVersion) -> bool: ... # type: ignore[override]
def __ne__(self, other: str | NumpyVersion) -> bool: ... # type: ignore[override]
def __gt__(self, other: str | NumpyVersion) -> bool: ...
def __ge__(self, other: str | NumpyVersion) -> bool: ...
vstring: Final[str]
version: Final[str]
major: Final[int]
minor: Final[int]
bugfix: Final[int]
pre_release: Final[str]
is_devversion: Final[bool]

def __init__(self, /, vstring: str) -> None: ...
def __lt__(self, other: str | NumpyVersion, /) -> bool: ...
def __le__(self, other: str | NumpyVersion, /) -> bool: ...
def __eq__(self, other: str | NumpyVersion, /) -> bool: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
def __ne__(self, other: str | NumpyVersion, /) -> bool: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
def __gt__(self, other: str | NumpyVersion, /) -> bool: ...
def __ge__(self, other: str | NumpyVersion, /) -> bool: ...
Loading