class documentation
Plugin that records all calls to a given target.
Method | __init__ |
Undocumented |
Method | get |
Adjust the return type of a function call. |
Method | get |
Adjust return type of a method call. |
Method | log |
Undocumented |
Instance Variable | mystery |
Undocumented |
Instance Variable | target |
Undocumented |
Inherited from Plugin
:
Method | get |
Customize dependencies for a module. |
Method | get |
Adjust type of an instance attribute. |
Method | get |
Update class definition for given base classes. |
Method | get |
Adjust type of a class attribute. |
Method | get |
Update class definition for given class decorators. |
Method | get |
Update class definition for given class decorators. |
Method | get |
Customize MRO for given classes. |
Method | get |
Semantically analyze a dynamic class definition. |
Method | get |
Adjust the signature of a function. |
Method | get |
Update class definition for given declared metaclasses. |
Method | get |
Adjust the signature of a method. |
Method | get |
Customize behaviour of the type analyzer for given full names. |
Method | lookup |
Lookup a symbol by its full name (including module). |
Method | report |
Get representation of configuration data for a module. |
Method | set |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | python |
Undocumented |
Instance Variable | _modules |
Undocumented |
overrides
mypy.plugin.Plugin.get_function_hook
Adjust the return type of a function call. This method is called after type checking a call. Plugin may adjust the return type inferred by mypy, and/or emit some error messages. Note, this hook is also called for class instantiation calls, so that in this example: from lib import Class, do_stuff do_stuff(42) Class() This method will be called with 'lib.do_stuff' and then with 'lib.Class'.
overrides
mypy.plugin.Plugin.get_method_hook
Adjust return type of a method call. This is the same as get_function_hook(), but is called with the method full name (again, using the class where the method is defined).