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

Function fail_merge_overload

mypy/nativeparse.py:1719–1727  ·  view source on GitHub ↗

Report an error when overloads cannot be merged due to unknown condition.

(state: State, node: IfStmt)

Source from the content-addressed store, hash-verified

1717
1718
1719def fail_merge_overload(state: State, node: IfStmt) -> None:
1720 """Report an error when overloads cannot be merged due to unknown condition."""
1721 state.add_error(
1722 message_registry.FAILED_TO_MERGE_OVERLOADS.value,
1723 node.line,
1724 node.column,
1725 blocker=False,
1726 code="misc",
1727 )
1728
1729
1730def check_ifstmt_for_overloads(

Callers 1

fix_function_overloadsFunction · 0.85

Calls 1

add_errorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…