Skip to content

Commit 9099403

Browse files
authored
builtins.pow: Add default values to <py38 branches; remove incorrect = ...s for the 13th overload (#9610)
1 parent b748a9a commit 9099403

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

stdlib/builtins.pyi

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ if sys.version_info >= (3, 8):
16331633
@overload
16341634
def pow(base: _SupportsPow3NoneOnly[_E, _T_co], exp: _E, mod: None = None) -> _T_co: ...
16351635
@overload
1636-
def pow(base: _SupportsPow3[_E, _M, _T_co], exp: _E, mod: _M = ...) -> _T_co: ...
1636+
def pow(base: _SupportsPow3[_E, _M, _T_co], exp: _E, mod: _M) -> _T_co: ...
16371637
@overload
16381638
def pow(base: _SupportsSomeKindOfPow, exp: float, mod: None = None) -> Any: ...
16391639
@overload
@@ -1643,33 +1643,33 @@ else:
16431643
@overload
16441644
def pow(__base: int, __exp: int, __mod: int) -> int: ...
16451645
@overload
1646-
def pow(__base: int, __exp: Literal[0], __mod: None = ...) -> Literal[1]: ... # type: ignore[misc]
1646+
def pow(__base: int, __exp: Literal[0], __mod: None = None) -> Literal[1]: ... # type: ignore[misc]
16471647
@overload
1648-
def pow(__base: int, __exp: _PositiveInteger, __mod: None = ...) -> int: ... # type: ignore[misc]
1648+
def pow(__base: int, __exp: _PositiveInteger, __mod: None = None) -> int: ... # type: ignore[misc]
16491649
@overload
1650-
def pow(__base: int, __exp: _NegativeInteger, __mod: None = ...) -> float: ... # type: ignore[misc]
1650+
def pow(__base: int, __exp: _NegativeInteger, __mod: None = None) -> float: ... # type: ignore[misc]
16511651
@overload
1652-
def pow(__base: int, __exp: int, __mod: None = ...) -> Any: ...
1652+
def pow(__base: int, __exp: int, __mod: None = None) -> Any: ...
16531653
@overload
1654-
def pow(__base: _PositiveInteger, __exp: float, __mod: None = ...) -> float: ...
1654+
def pow(__base: _PositiveInteger, __exp: float, __mod: None = None) -> float: ...
16551655
@overload
1656-
def pow(__base: _NegativeInteger, __exp: float, __mod: None = ...) -> complex: ...
1656+
def pow(__base: _NegativeInteger, __exp: float, __mod: None = None) -> complex: ...
16571657
@overload
1658-
def pow(__base: float, __exp: int, __mod: None = ...) -> float: ...
1658+
def pow(__base: float, __exp: int, __mod: None = None) -> float: ...
16591659
@overload
1660-
def pow(__base: float, __exp: complex | _SupportsSomeKindOfPow, __mod: None = ...) -> Any: ...
1660+
def pow(__base: float, __exp: complex | _SupportsSomeKindOfPow, __mod: None = None) -> Any: ...
16611661
@overload
1662-
def pow(__base: complex, __exp: complex | _SupportsSomeKindOfPow, __mod: None = ...) -> complex: ...
1662+
def pow(__base: complex, __exp: complex | _SupportsSomeKindOfPow, __mod: None = None) -> complex: ...
16631663
@overload
1664-
def pow(__base: _SupportsPow2[_E, _T_co], __exp: _E, __mod: None = ...) -> _T_co: ...
1664+
def pow(__base: _SupportsPow2[_E, _T_co], __exp: _E, __mod: None = None) -> _T_co: ...
16651665
@overload
1666-
def pow(__base: _SupportsPow3NoneOnly[_E, _T_co], __exp: _E, __mod: None = ...) -> _T_co: ...
1666+
def pow(__base: _SupportsPow3NoneOnly[_E, _T_co], __exp: _E, __mod: None = None) -> _T_co: ...
16671667
@overload
1668-
def pow(__base: _SupportsPow3[_E, _M, _T_co], __exp: _E, __mod: _M = ...) -> _T_co: ...
1668+
def pow(__base: _SupportsPow3[_E, _M, _T_co], __exp: _E, __mod: _M) -> _T_co: ...
16691669
@overload
1670-
def pow(__base: _SupportsSomeKindOfPow, __exp: float, __mod: None = ...) -> Any: ...
1670+
def pow(__base: _SupportsSomeKindOfPow, __exp: float, __mod: None = None) -> Any: ...
16711671
@overload
1672-
def pow(__base: _SupportsSomeKindOfPow, __exp: complex, __mod: None = ...) -> complex: ...
1672+
def pow(__base: _SupportsSomeKindOfPow, __exp: complex, __mod: None = None) -> complex: ...
16731673

16741674
def quit(code: sys._ExitCode = None) -> NoReturn: ...
16751675

0 commit comments

Comments
 (0)