class TypeVarLikeScope: (source)
Scope that holds bindings for type variables and parameter specifications.
Node fullname -> TypeVarLikeType.
| Method | __init__ |
Initializer for TypeVarLikeScope |
| Method | __str__ |
Undocumented |
| Method | allow_binding |
Undocumented |
| Method | bind_existing |
Undocumented |
| Method | bind_new |
Undocumented |
| Method | class_frame |
A new scope frame for binding a class. Prohibits this class's tvars |
| Method | get_binding |
Undocumented |
| Method | get_function_scope |
Get the nearest parent that's a function scope, not a class scope |
| Method | method_frame |
A new scope frame for binding a method |
| Instance Variable | class_id |
Undocumented |
| Instance Variable | func_id |
Undocumented |
| Instance Variable | is_class_scope |
Undocumented |
| Instance Variable | parent |
Undocumented |
| Instance Variable | prohibited |
Undocumented |
| Instance Variable | scope |
Undocumented |
Initializer for TypeVarLikeScope
parent: the outer scope for this scope is_class_scope: True if this represents a generic class prohibited: Type variables that aren't strictly in scope exactly,
but can't be bound because they're part of an outer class's scope.
| Parameters | |
parent:Optional[ | Undocumented |
is_class_scope:bool | Undocumented |
prohibited:Optional[ | Undocumented |
Undocumented
| Parameters | |
name:str | Undocumented |
tvar_expr:TypeVarLikeExpr | Undocumented |
| Returns | |
TypeVarLikeType | Undocumented |
| Returns | |
TypeVarLikeScope | Undocumented |
Undocumented
| Parameters | |
item:Union[ | Undocumented |
| Returns | |
Optional[ | Undocumented |
| Returns | |
Optional[ | Undocumented |