mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
committed by
Sebastian Rittau
parent
184148611a
commit
b3ced5b8c0
@@ -2,7 +2,7 @@ import numbers
|
||||
import sys
|
||||
from types import TracebackType
|
||||
from typing import (
|
||||
Any, Container, Dict, List, NamedTuple, Optional, Sequence, Text, Tuple, Type, TypeVar, Union,
|
||||
Any, Container, Dict, List, NamedTuple, Optional, overload, Sequence, Text, Tuple, Type, TypeVar, Union,
|
||||
)
|
||||
|
||||
_Decimal = Union[Decimal, int]
|
||||
@@ -121,7 +121,12 @@ class Decimal(object):
|
||||
def conjugate(self) -> Decimal: ...
|
||||
def __complex__(self) -> complex: ...
|
||||
if sys.version_info >= (3,):
|
||||
def __round__(self, n: Optional[int] = ...) -> int: ...
|
||||
@overload
|
||||
def __round__(self) -> int: ...
|
||||
@overload
|
||||
def __round__(self, ndigits: None) -> int: ...
|
||||
@overload
|
||||
def __round__(self, ndigits: int) -> Decimal: ...
|
||||
def __floor__(self) -> int: ...
|
||||
def __ceil__(self) -> int: ...
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user