Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4bdc3ba

Browse files
committed
TYP: Movedtrunc to_RoundMixin
1 parent24e6e21 commit4bdc3ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎numpy/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,8 @@ class _RoundMixin:
11211121
def__round__(self,/,ndigits:None=None)->int: ...
11221122
@overload
11231123
def__round__(self,/,ndigits:SupportsIndex)->Self: ...
1124+
@overload
1125+
def__trunc__(self,/)->int: ...
11241126

11251127
@type_check_only
11261128
class_IntegralMixin(_RealMixin):
@@ -4130,8 +4132,6 @@ class floating(_RealMixin, _RoundMixin, inexact[_NBit1, float]):
41304132
__divmod__:_FloatDivMod[_NBit1]
41314133
__rdivmod__:_FloatDivMod[_NBit1]
41324134

4133-
def__trunc__(self,/)->int: ...
4134-
41354135
# NOTE: `is_integer` and `as_integer_ratio` are technically defined in the concrete subtypes
41364136
defis_integer(self,/)->builtins.bool: ...
41374137
defas_integer_ratio(self,/)->tuple[int,int]: ...

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp