mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
update for the new patch releases (#13196)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user