@@ -47,10 +47,12 @@ _Nonexistent: TypeAlias = (
4747)
4848
4949class Timestamp (datetime ):
50- min : ClassVar [Timestamp ]
51- max : ClassVar [Timestamp ]
50+ min : ClassVar [Timestamp ] # pyright: ignore[reportIncompatibleVariableOverride]
51+ max : ClassVar [Timestamp ] # pyright: ignore[reportIncompatibleVariableOverride]
5252
53- resolution : ClassVar [Timedelta ]
53+ resolution : ClassVar [ # pyright: ignore[reportIncompatibleVariableOverride]
54+ Timedelta
55+ ]
5456 value : int
5557 def __new__ (
5658 cls ,
@@ -117,7 +119,7 @@ class Timestamp(datetime):
117119 def utcnow (cls ) -> Self : ...
118120 # error: Signature of "combine" incompatible with supertype "datetime"
119121 @classmethod
120- def combine (cls , date : _date , time : _time ) -> datetime : ... # type: ignore[override]
122+ def combine (cls , date : _date , time : _time ) -> Self : ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride ]
121123 @classmethod
122124 def fromisoformat (cls , date_string : str ) -> Self : ...
123125 def strftime (self , format : str ) -> str : ...
@@ -132,7 +134,7 @@ class Timestamp(datetime):
132134 # Override since fold is more precise than datetime.replace(fold:int)
133135 # Here it is restricted to be 0 or 1 using a Literal
134136 # Violation of Liskov substitution principle
135- def replace ( # type:ignore[override]
137+ def replace ( # type:ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
136138 self ,
137139 year : int | None = ...,
138140 month : int | None = ...,
@@ -148,7 +150,7 @@ class Timestamp(datetime):
148150 def ctime (self ) -> str : ...
149151 def isoformat (self , sep : str = ..., timespec : str = ...) -> str : ...
150152 @classmethod
151- def strptime (cls , date_string : Never , format : Never ) -> Never : ... # type: ignore[override]
153+ def strptime (cls , date_string : Never , format : Never ) -> Never : ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
152154 def utcoffset (self ) -> timedelta | None : ...
153155 def tzname (self ) -> str | None : ...
154156 def dst (self ) -> timedelta | None : ...
@@ -207,7 +209,7 @@ class Timestamp(datetime):
207209 @overload
208210 def __sub__ (self , other : TimedeltaSeries ) -> TimestampSeries : ...
209211 @overload
210- def __sub__ (
212+ def __sub__ ( # pyright: ignore[reportIncompatibleMethodOverride]
211213 self , other : npt .NDArray [np .timedelta64 ]
212214 ) -> npt .NDArray [np .datetime64 ]: ...
213215 @overload
0 commit comments