module documentation
Utilities related to determining the reachability of code (in semantic analysis).
Class |
|
Visitor that sets is_mypy_only (which affects priority). |
Class |
|
Visitor that flags all imports nested within a node as unreachable. |
Function | assert |
Undocumented |
Function | consider |
Consider whether expr is a comparison involving sys.platform. |
Function | consider |
Consider whether expr is a comparison involving sys.version_info. |
Function | contains |
Undocumented |
Function | contains |
Undocumented |
Function | fixed |
Undocumented |
Function | infer |
Infer whether the given condition is always true/false. |
Function | infer |
Undocumented |
Function | infer |
Undocumented |
Function | infer |
Undocumented |
Function | is |
Undocumented |
Function | mark |
Undocumented |
Function | mark |
Undocumented |
Constant | ALWAYS |
Undocumented |
Constant | ALWAYS |
Undocumented |
Constant | inverted |
Undocumented |
Constant | MYPY |
Undocumented |
Constant | MYPY |
Undocumented |
Constant | reverse |
Undocumented |
Constant | TRUTH |
Undocumented |
Type Variable |
|
Undocumented |
Consider whether expr is a comparison involving sys.platform. Return ALWAYS_TRUE, ALWAYS_FALSE, or TRUTH_VALUE_UNKNOWN.
Consider whether expr is a comparison involving sys.version_info. Return ALWAYS_TRUE, ALWAYS_FALSE, or TRUTH_VALUE_UNKNOWN.
Infer whether the given condition is always true/false. Return ALWAYS_TRUE if always true, ALWAYS_FALSE if always false, MYPY_TRUE if true under mypy and false at runtime, MYPY_FALSE if false under mypy and true at runtime, else TRUTH_VALUE_UNKNOWN.
Undocumented
Value |
|