mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 19:41:51 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from typing import Any, List, Optional, Sequence, Tuple
|
||||
from typing import Any, List, Sequence, Tuple
|
||||
|
||||
def symtable(code: str, filename: str, compile_type: str) -> SymbolTable: ...
|
||||
|
||||
@@ -30,10 +30,10 @@ class Class(SymbolTable):
|
||||
class Symbol(object):
|
||||
if sys.version_info >= (3, 8):
|
||||
def __init__(
|
||||
self, name: str, flags: int, namespaces: Optional[Sequence[SymbolTable]] = ..., *, module_scope: bool = ...
|
||||
self, name: str, flags: int, namespaces: Sequence[SymbolTable] | None = ..., *, module_scope: bool = ...
|
||||
) -> None: ...
|
||||
else:
|
||||
def __init__(self, name: str, flags: int, namespaces: Optional[Sequence[SymbolTable]] = ...) -> None: ...
|
||||
def __init__(self, name: str, flags: int, namespaces: Sequence[SymbolTable] | None = ...) -> None: ...
|
||||
def get_name(self) -> str: ...
|
||||
def is_referenced(self) -> bool: ...
|
||||
def is_parameter(self) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user