Skip to content

Commit 1e537d6

Browse files
authored
[sys] Add missing sys.flags (#14572)
1 parent 1c6a015 commit 1e537d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

stdlib/sys/__init__.pyi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ class _flags(_UninstantiableStructseq, tuple[int, ...]):
181181
if sys.version_info >= (3, 11):
182182
@property
183183
def safe_path(self) -> bool: ...
184+
if sys.version_info >= (3, 13):
185+
@property
186+
def gil(self) -> Literal[0, 1]: ...
187+
if sys.version_info >= (3, 14):
188+
@property
189+
def thread_inherit_context(self) -> Literal[0, 1]: ...
190+
@property
191+
def context_aware_warnings(self) -> Literal[0, 1]: ...
184192
# Whether or not this exists on lower versions of Python
185193
# may depend on which patch release you're using
186194
# (it was backported to all Python versions on 3.8+ as a security fix)

0 commit comments

Comments
 (0)