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