mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Third-party stubs: enforce CamelCase for type alias names (#8256)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ from ._common import weekday
|
||||
_SelfT = TypeVar("_SelfT", bound=relativedelta)
|
||||
_DateT = TypeVar("_DateT", date, datetime)
|
||||
# Work around attribute and type having the same name.
|
||||
_weekday: TypeAlias = weekday
|
||||
_Weekday: TypeAlias = weekday
|
||||
|
||||
MO: weekday
|
||||
TU: weekday
|
||||
@@ -30,7 +30,7 @@ class relativedelta:
|
||||
microseconds: int
|
||||
year: int | None
|
||||
month: int | None
|
||||
weekday: _weekday | None
|
||||
weekday: _Weekday | None
|
||||
day: int | None
|
||||
hour: int | None
|
||||
minute: int | None
|
||||
@@ -52,7 +52,7 @@ class relativedelta:
|
||||
year: int | None = ...,
|
||||
month: int | None = ...,
|
||||
day: int | None = ...,
|
||||
weekday: int | _weekday | None = ...,
|
||||
weekday: int | _Weekday | None = ...,
|
||||
yearday: int | None = ...,
|
||||
nlyearday: int | None = ...,
|
||||
hour: int | None = ...,
|
||||
|
||||
@@ -84,7 +84,7 @@ class _iterinfo:
|
||||
def mtimeset(self, hour, minute, second): ...
|
||||
def stimeset(self, hour, minute, second): ...
|
||||
|
||||
_rrule: TypeAlias = rrule
|
||||
_RRule: TypeAlias = rrule
|
||||
|
||||
class rruleset(rrulebase):
|
||||
class _genitem:
|
||||
@@ -100,7 +100,7 @@ class rruleset(rrulebase):
|
||||
def __ne__(self, other): ...
|
||||
|
||||
def __init__(self, cache: bool = ...) -> None: ...
|
||||
def rrule(self, rrule: _rrule): ...
|
||||
def rrule(self, rrule: _RRule): ...
|
||||
def rdate(self, rdate): ...
|
||||
def exrule(self, exrule): ...
|
||||
def exdate(self, exdate): ...
|
||||
|
||||
Reference in New Issue
Block a user