class documentation
class Context: (source)
An abstract context.
Method | __init__ |
Undocumented |
Method | allow |
Undocumented |
Method | check |
Checks for a mismatch between a variable's annotation and value. |
Method | connect |
Undocumented |
Method | join |
Undocumented |
Method | join |
Get a new node to which the given nodes have been joined. |
Method | join |
Undocumented |
Method | make |
Undocumented |
Method | matcher |
Undocumented |
Method | new |
Create a new unsolvable variable at node. |
Instance Variable | annotation |
Undocumented |
Instance Variable | attribute |
Undocumented |
Instance Variable | callself |
Undocumented |
Instance Variable | convert |
Undocumented |
Instance Variable | converter |
Undocumented |
Instance Variable | errorlog |
Undocumented |
Instance Variable | exitpoint |
Undocumented |
Instance Variable | generate |
Undocumented |
Instance Variable | loader |
Undocumented |
Instance Variable | method |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | program |
Undocumented |
Instance Variable | pytd |
Undocumented |
Instance Variable | python |
Undocumented |
Instance Variable | recursion |
Undocumented |
Instance Variable | root |
Undocumented |
Instance Variable | special |
Undocumented |
Instance Variable | store |
Undocumented |
Instance Variable | vm |
Undocumented |
def __init__(self, options:
config.Options
, loader: load_pytd.Loader
, generate_unknowns: bool
= False, store_all_calls: bool
= False):
(source)
¶
Undocumented
def check_annotation_type_mismatch(self, node, name, typ, value, stack, allow_none, details=None):
(source)
¶
Checks for a mismatch between a variable's annotation and value. Args: node: node name: variable name typ: variable annotation value: variable value stack: a frame stack for error reporting allow_none: whether a value of None is allowed for any type details: any additional details to add to the error message