update for the new patch releases (#13196)

This commit is contained in:
Stephen Morton
2024-12-05 09:24:07 -08:00
committed by GitHub
parent d0d0496f78
commit 1798badcdd
11 changed files with 42 additions and 30 deletions

View File

@@ -1,3 +1,4 @@
import sys
from types import CodeType
__all__ = ["compile_command", "Compile", "CommandCompiler"]
@@ -6,7 +7,10 @@ def compile_command(source: str, filename: str = "<input>", symbol: str = "singl
class Compile:
flags: int
def __call__(self, source: str, filename: str, symbol: str) -> CodeType: ...
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