mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-14 18:27:51 +08:00
Add SymbolTableFactory to symtable stub (#5998)
This is not documented API, but AFAIR the typeshed policy is now that stubs should preferably reflect reality rather than solely documented API. See https://github.com/python/cpython/blob/main/Lib/symtable.py#L21
This commit is contained in:
1 parent
425a35309a
commit
003f916acd
1 file changed
+5
@@ -47,3 +47,8 @@ class Symbol(object):
|
||||
def is_namespace(self) -> bool: ...
|
||||
def get_namespaces(self) -> Sequence[SymbolTable]: ...
|
||||
def get_namespace(self) -> SymbolTable: ...
|
||||
|
||||
class SymbolTableFactory(object):
|
||||
def __init__(self) -> None: ...
|
||||
def new(self, table: Any, filename: str) -> SymbolTable: ...
|
||||
def __call__(self, table: Any, filename: str) -> SymbolTable: ...
|
||||
Reference in new issue
Block a user