Skip to content

Commit 60a3cee

Browse files
__future__._Feature.getMandatoryRelease() can return None (#8232)
Co-authored-by: KotlinIsland <[email protected]> Co-authored-by: Alex Waygood <[email protected]>
1 parent e19073e commit 60a3cee

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

stdlib/__future__.pyi

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import sys
2+
from typing_extensions import TypeAlias
3+
4+
_VersionInfo: TypeAlias = tuple[int, int, int, str, int]
25

36
class _Feature:
4-
def __init__(self, optionalRelease: sys._version_info, mandatoryRelease: sys._version_info, compiler_flag: int) -> None: ...
5-
def getOptionalRelease(self) -> sys._version_info: ...
6-
def getMandatoryRelease(self) -> sys._version_info: ...
7+
def __init__(self, optionalRelease: _VersionInfo, mandatoryRelease: _VersionInfo | None, compiler_flag: int) -> None: ...
8+
def getOptionalRelease(self) -> _VersionInfo: ...
9+
def getMandatoryRelease(self) -> _VersionInfo | None: ...
710
compiler_flag: int
811

912
absolute_import: _Feature

0 commit comments

Comments
 (0)