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

Function assert_will_always_fail

mypy/reachability.py:104–105  ·  view source on GitHub ↗
(s: AssertStmt, options: Options)

Source from the content-addressed store, hash-verified

102
103
104def assert_will_always_fail(s: AssertStmt, options: Options) -> bool:
105 return infer_condition_value(s.expr, options) in (ALWAYS_FALSE, MYPY_FALSE)
106
107
108def infer_condition_value(expr: Expression, options: Options) -> int:

Callers 1

visit_fileMethod · 0.90

Calls 1

infer_condition_valueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…