Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion stdlib/_thread.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def allocate() -> LockType: ... # undocumented
def get_ident() -> int: ...
def stack_size(size: int = 0, /) -> int: ...

TIMEOUT_MAX: Final[FloatInt]
TIMEOUT_MAX: Final[float]

def get_native_id() -> int: ... # only available on some platforms

Expand Down
6 changes: 3 additions & 3 deletions stdlib/colorsys.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ def rgb_to_hsv(r: FloatInt, g: FloatInt, b: FloatInt) -> tuple[float, float, flo
def hsv_to_rgb(h: FloatInt, s: FloatInt, v: FloatInt) -> tuple[float, float, float]: ...

# undocumented
ONE_SIXTH: Final[FloatInt]
ONE_THIRD: Final[FloatInt]
TWO_THIRD: Final[FloatInt]
ONE_THIRD: Final[float]
ONE_SIXTH: Final[float]
TWO_THIRD: Final[float]
3 changes: 1 addition & 2 deletions stdlib/json/encoder.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from _typeshed import FloatInt
from collections.abc import Callable, Iterator
from re import Pattern
from typing import Any, Final
Expand All @@ -7,7 +6,7 @@ ESCAPE: Final[Pattern[str]] # undocumented
ESCAPE_ASCII: Final[Pattern[str]] # undocumented
HAS_UTF8: Final[Pattern[bytes]] # undocumented
ESCAPE_DCT: Final[dict[str, str]] # undocumented
INFINITY: Final[FloatInt] # undocumented
INFINITY: Final[float] # undocumented

def py_encode_basestring(s: str) -> str: ... # undocumented
def py_encode_basestring_ascii(s: str) -> str: ... # undocumented
Expand Down
2 changes: 1 addition & 1 deletion stdlib/threading.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ if sys.version_info >= (3, 15):

def stack_size(size: int = 0, /) -> int: ...

TIMEOUT_MAX: Final[FloatInt]
TIMEOUT_MAX: Final[float]

ThreadError = _thread.error
local = _thread._local
Expand Down
4 changes: 2 additions & 2 deletions stdlib/tkinter/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ __all__ = [

TclError = _tkinter.TclError
wantobjects: int
TkVersion: Final[FloatInt]
TclVersion: Final[FloatInt]
TkVersion: Final[float]
TclVersion: Final[float]
READABLE: Final = _tkinter.READABLE
WRITABLE: Final = _tkinter.WRITABLE
EXCEPTION: Final = _tkinter.EXCEPTION
Expand Down
4 changes: 2 additions & 2 deletions stdlib/unittest/mock.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ from _typeshed import FloatInt, MaybeNone
from collections.abc import Awaitable, Callable, Coroutine, Iterable, Mapping, Sequence
from contextlib import _GeneratorContextManager
from types import TracebackType
from typing import Any, ClassVar, Final, Generic, Literal, ParamSpec, TypeAlias, TypeVar, overload, type_check_only
from typing import Any, ClassVar, Generic, Literal, ParamSpec, TypeAlias, TypeVar, overload, type_check_only
from typing_extensions import Self, disjoint_base

_T = TypeVar("_T")
Expand Down Expand Up @@ -542,7 +542,7 @@ class PropertyMock(Mock):

if sys.version_info >= (3, 13):
class ThreadingMixin(Base):
DEFAULT_TIMEOUT: Final[FloatInt | None] = None
DEFAULT_TIMEOUT: ClassVar[float | int | None] = None

def __init__(self, /, *args: Any, timeout: FloatInt | _SentinelObject | None = ..., **kwargs: Any) -> None: ...
# Same as `NonCallableMock.reset_mock.`
Expand Down
4 changes: 2 additions & 2 deletions stubs/PyAutoGUI/pyautogui/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ G_LOG_SCREENSHOTS_FILENAMES: list[str]
# Implementation details
QWERTY: Final[str]
QWERTZ: Final[str]
MINIMUM_SLEEP: Final[FloatInt]
MINIMUM_SLEEP: Final = 0.05

# These are meant to be overridable
LOG_SCREENSHOTS: bool
Expand All @@ -47,7 +47,7 @@ PAUSE: FloatInt
DARWIN_CATCH_UP_TIME: FloatInt
FAILSAFE_POINTS: list[tuple[int, int]]
# https://pyautogui.readthedocs.io/en/latest/mouse.htmln#mouse-movement
MINIMUM_DURATION: FloatInt
MINIMUM_DURATION: float | int

class PyAutoGUIException(Exception): ...
class FailSafeException(PyAutoGUIException): ...
Expand Down
4 changes: 2 additions & 2 deletions stubs/PyMeeus/pymeeus/Coordinates.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ from pymeeus.Angle import Angle
from pymeeus.Epoch import Epoch

NUTATION_ARG_TABLE: Final[list[list[int]]]
NUTATION_SINE_COEF_TABLE: Final[list[list[FloatInt]]]
NUTATION_COSINE_COEF_TABLE: Final[list[list[FloatInt]]]
NUTATION_SINE_COEF_TABLE: Final[list[list[float]]]
NUTATION_COSINE_COEF_TABLE: Final[list[list[float]]]

@overload
def mean_obliquity(
Expand Down
14 changes: 7 additions & 7 deletions stubs/PyMeeus/pymeeus/Earth.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ from typing import Final
from pymeeus.Angle import Angle
from pymeeus.Epoch import Epoch

VSOP87_L: Final[list[list[list[FloatInt]]]]
VSOP87_B: Final[list[list[list[FloatInt]]]]
VSOP87_R: Final[list[list[list[FloatInt]]]]
VSOP87_L_J2000: Final[list[list[list[FloatInt]]]]
VSOP87_B_J2000: Final[list[list[list[FloatInt]]]]
ORBITAL_ELEM: Final[list[list[FloatInt]]]
ORBITAL_ELEM_J2000: Final[list[list[FloatInt]]]
VSOP87_L: Final[list[list[list[float]]]]
VSOP87_B: Final[list[list[list[float]]]]
VSOP87_R: Final[list[list[list[float]]]]
VSOP87_L_J2000: Final[list[list[list[float]]]]
VSOP87_B_J2000: Final[list[list[list[float]]]]
ORBITAL_ELEM: Final[list[list[float]]]
ORBITAL_ELEM_J2000: Final[list[list[float]]]

class Ellipsoid:
def __init__(self, a: FloatInt, f: FloatInt, omega: FloatInt) -> None: ...
Expand Down
2 changes: 1 addition & 1 deletion stubs/PyMeeus/pymeeus/Epoch.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ from pymeeus.Angle import Angle
DAY2SEC: Final = 86400.0
DAY2MIN: Final = 1440.0
DAY2HOURS: Final = 24.0
LEAP_TABLE: Final[dict[FloatInt, int]]
LEAP_TABLE: Final[dict[float, int]]

class Epoch:
@overload
Expand Down
10 changes: 5 additions & 5 deletions stubs/PyMeeus/pymeeus/Jupiter.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ from typing import Final
from pymeeus.Angle import Angle
from pymeeus.Epoch import Epoch

VSOP87_L: Final[list[list[list[FloatInt]]]]
VSOP87_B: Final[list[list[list[FloatInt]]]]
VSOP87_R: Final[list[list[list[FloatInt]]]]
ORBITAL_ELEM: Final[list[list[FloatInt]]]
ORBITAL_ELEM_J2000: Final[list[list[FloatInt]]]
VSOP87_L: Final[list[list[list[float]]]]
VSOP87_B: Final[list[list[list[float]]]]
VSOP87_R: Final[list[list[list[float]]]]
ORBITAL_ELEM: Final[list[list[float]]]
ORBITAL_ELEM_J2000: Final[list[list[float]]]

class Jupiter:
@staticmethod
Expand Down
10 changes: 5 additions & 5 deletions stubs/PyMeeus/pymeeus/Mars.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ from typing import Final
from pymeeus.Angle import Angle
from pymeeus.Epoch import Epoch

VSOP87_L: Final[list[list[list[FloatInt]]]]
VSOP87_B: Final[list[list[list[FloatInt]]]]
VSOP87_R: Final[list[list[list[FloatInt]]]]
ORBITAL_ELEM: Final[list[list[FloatInt]]]
ORBITAL_ELEM_J2000: Final[list[list[FloatInt]]]
VSOP87_L: Final[list[list[list[float]]]]
VSOP87_B: Final[list[list[list[float]]]]
VSOP87_R: Final[list[list[list[float]]]]
ORBITAL_ELEM: Final[list[list[float]]]
ORBITAL_ELEM_J2000: Final[list[list[float]]]

class Mars:
@staticmethod
Expand Down
10 changes: 5 additions & 5 deletions stubs/PyMeeus/pymeeus/Mercury.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ from typing import Final
from pymeeus.Angle import Angle
from pymeeus.Epoch import Epoch

VSOP87_L: Final[list[list[list[FloatInt]]]]
VSOP87_B: Final[list[list[list[FloatInt]]]]
VSOP87_R: Final[list[list[list[FloatInt]]]]
ORBITAL_ELEM: Final[list[list[FloatInt]]]
ORBITAL_ELEM_J2000: Final[list[list[FloatInt]]]
VSOP87_L: Final[list[list[list[float]]]]
VSOP87_B: Final[list[list[list[float]]]]
VSOP87_R: Final[list[list[list[float]]]]
ORBITAL_ELEM: Final[list[list[float]]]
ORBITAL_ELEM_J2000: Final[list[list[float]]]

class Mercury:
@staticmethod
Expand Down
5 changes: 2 additions & 3 deletions stubs/PyMeeus/pymeeus/Moon.pyi
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from _typeshed import FloatInt
from typing import Final, Literal

from pymeeus.Angle import Angle
from pymeeus.Epoch import Epoch

PERIODIC_TERMS_LR_TABLE: Final[list[list[FloatInt]]]
PERIODIC_TERMS_B_TABLE: Final[list[list[FloatInt]]]
PERIODIC_TERMS_LR_TABLE: Final[list[list[float | int]]]
PERIODIC_TERMS_B_TABLE: Final[list[list[float | int]]]

class Moon:
@staticmethod
Expand Down
10 changes: 5 additions & 5 deletions stubs/PyMeeus/pymeeus/Neptune.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ from typing import Final
from pymeeus.Angle import Angle
from pymeeus.Epoch import Epoch

VSOP87_L: Final[list[list[list[FloatInt]]]]
VSOP87_B: Final[list[list[list[FloatInt]]]]
VSOP87_R: Final[list[list[list[FloatInt]]]]
ORBITAL_ELEM: Final[list[list[FloatInt]]]
ORBITAL_ELEM_J2000: Final[list[list[FloatInt]]]
VSOP87_L: Final[list[list[list[float]]]]
VSOP87_B: Final[list[list[list[float]]]]
VSOP87_R: Final[list[list[list[float]]]]
ORBITAL_ELEM: Final[list[list[float]]]
ORBITAL_ELEM_J2000: Final[list[list[float]]]

class Neptune:
@staticmethod
Expand Down
9 changes: 4 additions & 5 deletions stubs/PyMeeus/pymeeus/Pluto.pyi
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from _typeshed import FloatInt
from typing import Final

from pymeeus.Angle import Angle
from pymeeus.Epoch import Epoch

PLUTO_ARGUMENT: Final[list[tuple[FloatInt, FloatInt, FloatInt]]]
PLUTO_LONGITUDE: Final[list[tuple[FloatInt, FloatInt]]]
PLUTO_LATITUDE: Final[list[tuple[FloatInt, FloatInt]]]
PLUTO_RADIUS_VECTOR: Final[list[tuple[FloatInt, FloatInt]]]
PLUTO_ARGUMENT: Final[list[tuple[float, float, float]]]
PLUTO_LONGITUDE: Final[list[tuple[float, float]]]
PLUTO_LATITUDE: Final[list[tuple[float, float]]]
PLUTO_RADIUS_VECTOR: Final[list[tuple[float, float]]]

class Pluto:
@staticmethod
Expand Down
10 changes: 5 additions & 5 deletions stubs/PyMeeus/pymeeus/Saturn.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ from typing import Final
from pymeeus.Angle import Angle
from pymeeus.Epoch import Epoch

VSOP87_L: Final[list[list[list[FloatInt]]]]
VSOP87_B: Final[list[list[list[FloatInt]]]]
VSOP87_R: Final[list[list[list[FloatInt]]]]
ORBITAL_ELEM: Final[list[list[FloatInt]]]
ORBITAL_ELEM_J2000: Final[list[list[FloatInt]]]
VSOP87_L: Final[list[list[list[float]]]]
VSOP87_B: Final[list[list[list[float]]]]
VSOP87_R: Final[list[list[list[float]]]]
ORBITAL_ELEM: Final[list[list[float]]]
ORBITAL_ELEM_J2000: Final[list[list[float]]]

class Saturn:
@staticmethod
Expand Down
10 changes: 5 additions & 5 deletions stubs/PyMeeus/pymeeus/Uranus.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ from typing import Final
from pymeeus.Angle import Angle
from pymeeus.Epoch import Epoch

VSOP87_L: Final[list[list[list[FloatInt]]]]
VSOP87_B: Final[list[list[list[FloatInt]]]]
VSOP87_R: Final[list[list[list[FloatInt]]]]
ORBITAL_ELEM: Final[list[list[FloatInt]]]
ORBITAL_ELEM_J2000: Final[list[list[FloatInt]]]
VSOP87_L: Final[list[list[list[float]]]]
VSOP87_B: Final[list[list[list[float]]]]
VSOP87_R: Final[list[list[list[float]]]]
ORBITAL_ELEM: Final[list[list[float]]]
ORBITAL_ELEM_J2000: Final[list[list[float]]]

class Uranus:
@staticmethod
Expand Down
10 changes: 5 additions & 5 deletions stubs/PyMeeus/pymeeus/Venus.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ from typing import Final
from pymeeus.Angle import Angle
from pymeeus.Epoch import Epoch

VSOP87_L: Final[list[list[list[FloatInt]]]]
VSOP87_B: Final[list[list[list[FloatInt]]]]
VSOP87_R: Final[list[list[list[FloatInt]]]]
ORBITAL_ELEM: Final[list[list[FloatInt]]]
ORBITAL_ELEM_J2000: Final[list[list[FloatInt]]]
VSOP87_L: Final[list[list[list[float]]]]
VSOP87_B: Final[list[list[list[float]]]]
VSOP87_R: Final[list[list[list[float]]]]
ORBITAL_ELEM: Final[list[list[float]]]
ORBITAL_ELEM_J2000: Final[list[list[float]]]

class Venus:
@staticmethod
Expand Down
10 changes: 5 additions & 5 deletions stubs/docutils/docutils/writers/manpage.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ class _RegexPatternSub(Protocol):
def __call__(self, /, repl: str | Callable[[re.Match[str]], str], string: str, count: int = 0) -> str: ...

__docformat__: Final = "reStructuredText"
FIELD_LIST_INDENT: Final[int]
DEFINITION_LIST_INDENT: Final[int]
OPTION_LIST_INDENT: Final[int]
BLOCKQOUTE_INDENT: Final[FloatInt]
LITERAL_BLOCK_INDENT: Final[FloatInt]
FIELD_LIST_INDENT: Final = 7
DEFINITION_LIST_INDENT: Final = 7
OPTION_LIST_INDENT: Final = 7
BLOCKQOUTE_INDENT: Final = 3.5
LITERAL_BLOCK_INDENT: Final = 3.5
MACRO_DEF: Final[str]
NONPRINTING_BREAKPOINT: Final[str]
NONBREAKING_INSERT_RE: Final[re.Pattern[str]]
Expand Down
44 changes: 22 additions & 22 deletions stubs/ephem/ephem/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@ from . import _libastro
__version__: Final[str]

# Mathematical constants
tau: Final[FloatInt]
twopi: Final[FloatInt]
halfpi: Final[FloatInt]
quarterpi: Final[FloatInt]
eighthpi: Final[FloatInt]
degree: Final[FloatInt]
arcminute: Final[FloatInt]
arcsecond: Final[FloatInt]
half_arcsecond: Final[FloatInt]
tiny: Final[FloatInt]
tau: Final[float]
twopi: Final[float]
halfpi: Final[float]
quarterpi: Final[float]
eighthpi: Final[float]
degree: Final[float]
arcminute: Final[float]
arcsecond: Final[float]
half_arcsecond: Final[float]
tiny: Final[float]

# Physical constants
c: Final[FloatInt]
meters_per_au: Final[FloatInt]
earth_radius: Final[FloatInt]
moon_radius: Final[FloatInt]
sun_radius: Final[FloatInt]
c: Final[float]
meters_per_au: Final[float]
earth_radius: Final[float]
moon_radius: Final[float]
sun_radius: Final[float]

# Epoch constants
B1900: Final[FloatInt]
B1950: Final[FloatInt]
J2000: Final[FloatInt]
B1900: Final[float]
B1950: Final[float]
J2000: Final[float]

# Type imports from _libastro
Angle = _libastro.Angle
Expand All @@ -39,12 +39,12 @@ hours = _libastro.hours
Date = _libastro.Date

# Time constants
hour: Final[FloatInt]
minute: Final[FloatInt]
second: Final[FloatInt]
hour: Final[float]
minute: Final[float]
second: Final[float]

# Precision constants
default_newton_precision: Final[FloatInt]
default_newton_precision: Final[float]
rise_set_iterations: Final[tuple[int, int, int, int, int, int, int]]

# Function imports from _libastro
Expand Down
12 changes: 6 additions & 6 deletions stubs/ephem/ephem/_libastro.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ class _AngleDescriptorDegreesRadians:
@overload
def __set__(self, obj: object, value: FloatInt | str) -> None: ...

J2000: Final[FloatInt]
MJD0: Final[FloatInt]
earth_radius: Final[FloatInt]
meters_per_au: Final[FloatInt]
moon_radius: Final[FloatInt]
sun_radius: Final[FloatInt]
J2000: Final[float]
MJD0: Final[float]
earth_radius: Final[float]
meters_per_au: Final[float]
moon_radius: Final[float]
sun_radius: Final[float]

@disjoint_base
class Angle(float): # type: ignore[type-var]
Expand Down
4 changes: 2 additions & 2 deletions stubs/networkx/networkx/algorithms/community/lukes.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from _typeshed import FloatInt, Incomplete
from _typeshed import Incomplete
from typing import Final

from networkx.classes.graph import Graph, _Node
Expand All @@ -7,7 +7,7 @@ from networkx.utils.backends import _dispatchable
__all__ = ["lukes_partitioning"]

D_EDGE_W: Final = "weight"
D_EDGE_VALUE: Final[FloatInt]
D_EDGE_VALUE: Final = 1.0
D_NODE_W: Final = "weight"
D_NODE_VALUE: Final = 1
PKEY: Final = "partitions"
Expand Down
Loading
Loading