mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Update {code,codop}.compile_command in 3.14 (#14049)
This commit is contained in:
+5
-1
@@ -3,7 +3,11 @@ from types import CodeType
|
||||
|
||||
__all__ = ["compile_command", "Compile", "CommandCompiler"]
|
||||
|
||||
def compile_command(source: str, filename: str = "<input>", symbol: str = "single") -> CodeType | None: ...
|
||||
if sys.version_info >= (3, 14):
|
||||
def compile_command(source: str, filename: str = "<input>", symbol: str = "single", flags: int = 0) -> CodeType | None: ...
|
||||
|
||||
else:
|
||||
def compile_command(source: str, filename: str = "<input>", symbol: str = "single") -> CodeType | None: ...
|
||||
|
||||
class Compile:
|
||||
flags: int
|
||||
|
||||
Reference in New Issue
Block a user