Undocumented
Function | call_singledispatch_function_after_register_argument |
Called on the function after passing a type to register |
Function | call_singledispatch_function_callback |
Called for functools._SingleDispatchCallable.__call__ |
Function | create_singledispatch_function_callback |
Called for functools.singledispatch |
Function | fail |
Emit an error message. |
Function | get_dispatch_type |
Undocumented |
Function | get_first_arg |
Get the element that corresponds to the first argument passed to the function |
Function | get_singledispatch_info |
Undocumented |
Function | make_fake_register_class_instance |
Undocumented |
Function | register_function |
Register a function |
Function | rename_func |
Return a new CallableType that is function with the name of new_name |
Function | singledispatch_register_callback |
Called for functools._SingleDispatchCallable.register |
Constant | REGISTER_CALLABLE_CALL_METHOD |
Undocumented |
Constant | REGISTER_RETURN_CLASS |
Undocumented |
Constant | SINGLEDISPATCH_CALLABLE_CALL_METHOD |
Undocumented |
Constant | SINGLEDISPATCH_REGISTER_METHOD |
Undocumented |
Constant | SINGLEDISPATCH_TYPE |
Undocumented |
Constant | T |
Undocumented |
Variable | PluginContext |
Undocumented |
Variable | RegisterCallableInfo |
Undocumented |
Variable | SingledispatchTypeVars |
Undocumented |
Parameters | |
ctx:MethodContext | Undocumented |
Returns | |
Type | Undocumented |
Parameters | |
ctx:MethodSigContext | Undocumented |
Returns | |
FunctionLike | Undocumented |
Emit an error message.
This tries to emit an error message at the location specified by context
, falling back to the
location specified by ctx.context
. This is helpful when the only context information about
where you want to put the error message may be None (like it is for CallableType.definition
)
and falling back to the location of the calling function is fine.
Parameters | |
ctx:PluginContext | Undocumented |
msg:str | Undocumented |
context:Optional[ | Undocumented |
Undocumented
Parameters | |
func:CallableType | Undocumented |
register_arg:Optional[ | Undocumented |
Returns | |
Optional[ | Undocumented |
Undocumented
Parameters | |
api:CheckerPluginInterface | Undocumented |
type_args:Sequence[ | Undocumented |
Returns | |
Instance | Undocumented |
Parameters | |
ctx:PluginContext | Undocumented |
singledispatch_obj:Instance | Undocumented |
func:Type | Undocumented |
register_arg:Optional[ | Undocumented |
function
with the name of new_name
Parameters | |
func:CallableType | Undocumented |
new_name:CallableType | Undocumented |
Returns | |
CallableType | Undocumented |
Parameters | |
ctx:MethodContext | Undocumented |
Returns | |
Type | Undocumented |
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|