MCPcopy Index your code
hub / github.com/python/mypy / ReturnHandler

Class ReturnHandler

mypyc/codegen/emit.py:196–200  ·  view source on GitHub ↗

Return a constant value on error.

Source from the content-addressed store, hash-verified

194
195
196class ReturnHandler(ErrorHandler):
197 """Return a constant value on error."""
198
199 def __init__(self, value: str) -> None:
200 self.value = value
201
202
203class Emitter:

Callers 7

test_check_listMethod · 0.90
test_check_intMethod · 0.90
generate_wrapper_coreFunction · 0.90
errorMethod · 0.90
generate_setterFunction · 0.90
generate_property_setterFunction · 0.90

Calls

no outgoing calls

Tested by 2

test_check_listMethod · 0.72
test_check_intMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…