mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
from types import CodeType
|
||||
from typing import Optional
|
||||
|
||||
def compile_command(source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...
|
||||
def compile_command(source: str, filename: str = ..., symbol: str = ...) -> CodeType | None: ...
|
||||
|
||||
class Compile:
|
||||
flags: int
|
||||
@@ -11,4 +10,4 @@ class Compile:
|
||||
class CommandCompiler:
|
||||
compiler: Compile
|
||||
def __init__(self) -> None: ...
|
||||
def __call__(self, source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...
|
||||
def __call__(self, source: str, filename: str = ..., symbol: str = ...) -> CodeType | None: ...
|
||||
|
||||
Reference in New Issue
Block a user