Third-party stubs: enforce CamelCase for type alias names (#8256)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Alex Waygood
2022-07-19 08:23:24 +01:00
committed by GitHub
parent 4b34b345f1
commit e3d4bdc91a
13 changed files with 69 additions and 68 deletions

View File

@@ -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 = ...,

View File

@@ -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): ...