Skip to content

Commit

Permalink
fix new pyright error (related to the new overload typing spec draft)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Jan 30, 2025
1 parent 1458355 commit 51f7c7f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions optype/_core/_can.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,8 @@ class CanPow(
@override
def __pow__(self, exp: _T_contra, /) -> _T_co: ...
@overload
@override
def __pow__(self, exp: _T_contra, mod: None = ..., /) -> _T_co: ...
@overload
@override
def __pow__(self, exp: _T_contra, mod: _V_contra, /) -> _AnyIntT_co: ...


Expand Down Expand Up @@ -956,10 +954,8 @@ class CanRound(
@override
def __round__(self, /) -> _AnyIntT_co: ...
@overload
@override
def __round__(self, /, ndigits: None = ...) -> _AnyIntT_co: ...
@overload
@override
def __round__(self, /, ndigits: _AnyIntT_contra) -> _AnyFloatT_co: ...


Expand Down

0 comments on commit 51f7c7f

Please sign in to comment.