@@ -146,13 +146,11 @@ def instance(
146146
147147 @overload
148148 @classmethod
149- def now (cls , tz : datetime .tzinfo | None = None ) -> Self :
150- ...
149+ def now (cls , tz : datetime .tzinfo | None = None ) -> Self : ...
151150
152151 @overload
153152 @classmethod
154- def now (cls , tz : str | Timezone | FixedTimezone | None = None ) -> Self :
155- ...
153+ def now (cls , tz : str | Timezone | FixedTimezone | None = None ) -> Self : ...
156154
157155 @classmethod
158156 def now (
@@ -474,7 +472,7 @@ def __repr__(self) -> str:
474472 if self .microsecond :
475473 us = f", { self .microsecond } "
476474
477- repr_ = "{klass}(" " {year}, {month}, {day}, " " {hour}, {minute}, {second}{us}"
475+ repr_ = "{klass}({year}, {month}, {day}, {hour}, {minute}, {second}{us}"
478476
479477 if self .tzinfo is not None :
480478 repr_ += ", tzinfo={tzinfo}"
@@ -1008,7 +1006,7 @@ def nth_of(self, unit: str, nth: int, day_of_week: WeekDay) -> Self:
10081006 if unit not in ["month" , "quarter" , "year" ]:
10091007 raise ValueError (f'Invalid unit "{ unit } " for first_of()' )
10101008
1011- dt = cast (Optional [" Self" ] , getattr (self , f"_nth_of_{ unit } " )(nth , day_of_week ))
1009+ dt = cast (" Optional[Self]" , getattr (self , f"_nth_of_{ unit } " )(nth , day_of_week ))
10121010 if not dt :
10131011 raise PendulumException (
10141012 f"Unable to find occurrence { nth } "
@@ -1186,12 +1184,10 @@ def average( # type: ignore[override]
11861184 )
11871185
11881186 @overload # type: ignore[override]
1189- def __sub__ (self , other : datetime .timedelta ) -> Self :
1190- ...
1187+ def __sub__ (self , other : datetime .timedelta ) -> Self : ...
11911188
11921189 @overload
1193- def __sub__ (self , other : DateTime ) -> Interval [datetime .datetime ]:
1194- ...
1190+ def __sub__ (self , other : DateTime ) -> Interval [datetime .datetime ]: ...
11951191
11961192 def __sub__ (
11971193 self , other : datetime .datetime | datetime .timedelta
0 commit comments