mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
18 lines
628 B
Python
18 lines
628 B
Python
import sys
|
|
from types import CodeType
|
|
|
|
__all__ = ["compile_command", "Compile", "CommandCompiler"]
|
|
|
|
def compile_command(source: str, filename: str = "<input>", symbol: str = "single") -> CodeType | None: ...
|
|
|
|
class Compile:
|
|
flags: int
|
|
if sys.version_info >= (3, 13):
|
|
def __call__(self, source: str, filename: str, symbol: str, flags: int = 0) -> CodeType: ...
|
|
else:
|
|
def __call__(self, source: str, filename: str, symbol: str) -> CodeType: ...
|
|
|
|
class CommandCompiler:
|
|
compiler: Compile
|
|
def __call__(self, source: str, filename: str = "<input>", symbol: str = "single") -> CodeType | None: ...
|