File tree 1 file changed +12
-1
lines changed 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,18 @@ class FloatOperation(DecimalException, TypeError): ...
52
52
53
53
def setcontext (__context : Context ) -> None : ...
54
54
def getcontext () -> Context : ...
55
- def localcontext (ctx : Context | None = ...) -> _ContextManager : ...
55
+ if sys .version_info >= (3 , 11 ):
56
+ def localcontext (ctx : Context | None = ..., * ,
57
+ prec : int | None = ...,
58
+ rounding : str | None = ...,
59
+ Emin : int | None = ...,
60
+ Emax : int | None = ...,
61
+ capitals : int | None = ...,
62
+ clamp : int | None = ...,
63
+ traps : dict [_TrapType , bool ] | None = ...,
64
+ flags : dict [_TrapType , bool ] | None = ...) -> _ContextManager : ...
65
+ else :
66
+ def localcontext (ctx : Context | None = ...) -> _ContextManager : ...
56
67
57
68
class Decimal :
58
69
def __new__ (cls : type [Self ], value : _DecimalNew = ..., context : Context | None = ...) -> Self : ...
You can’t perform that action at this time.
0 commit comments