module documentation
Undocumented
| Class | |
Internal implementation of libstatic.Type. |
| Class | |
No summary |
| Function | |
Create a Type from it's qualified name. |
| Function | |
Undocumented |
| Function | cleanup |
Undocumented |
| Function | |
Create a Type from a classdef. |
| Function | find |
Get the definition of the object qualified by the given name, type hint and location or raise an exception. |
| Function | |
Get a lazy mapping of all types of the members of this class, including inherited. |
| Function | |
Create a Type that is not in the system. |
| Function | |
Fetch the super-types in mro order of this classdef. |
| Function | |
Create a Type that is defined in the system but that's not a classdef. |
| Class | _ |
When given an expression, the node returned by L{ast.NodeVisitor.visit()} will also be an expression. If any string literal contained in the original expression is either invalid Python or not a singular expression, L{SyntaxError} is raised. |
| Class | _ |
Converts an annotation into a L{Type}. |
| Class | _ |
Find the L{Type} of an expression. |
| Class | _ |
Undocumented |
| Function | _merge |
Undocumented |
| Function | _raise |
Undocumented |
| Function | _union |
Undocumented |
| Type Variable | _T |
Undocumented |
Create a Type from it's qualified name.
| Raises | |
StaticException | If the name is not in the system and the qualname does not refer to a builtin or a typing name. In these cases, a type with no definition is returned because we can still account for it even if the modules 'typing' or 'buitlins' are not in the system. |
@lru_cache( maxsize=None)
def find_typedef(state:
def find_typedef(state:
State, qualname: str, *, hint: type[ Def] | tuple[ type[ Def], ...] = Def, location: NodeLocation | None = None) -> NameDef:
(source)
¶
Get the definition of the object qualified by the given name, type hint and location or raise an exception.
Wrapper arround get_defs_from_qualname.