mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
[sys] Add missing sys.flags (#14572)
This commit is contained in:
@@ -181,6 +181,14 @@ class _flags(_UninstantiableStructseq, tuple[int, ...]):
|
||||
if sys.version_info >= (3, 11):
|
||||
@property
|
||||
def safe_path(self) -> bool: ...
|
||||
if sys.version_info >= (3, 13):
|
||||
@property
|
||||
def gil(self) -> Literal[0, 1]: ...
|
||||
if sys.version_info >= (3, 14):
|
||||
@property
|
||||
def thread_inherit_context(self) -> Literal[0, 1]: ...
|
||||
@property
|
||||
def context_aware_warnings(self) -> Literal[0, 1]: ...
|
||||
# Whether or not this exists on lower versions of Python
|
||||
# may depend on which patch release you're using
|
||||
# (it was backported to all Python versions on 3.8+ as a security fix)
|
||||
|
||||
Reference in New Issue
Block a user