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

Method parse_bool

mypy/semanal.py:7917–7919  ·  view source on GitHub ↗
(self, expr: Expression)

Source from the content-addressed store, hash-verified

7915 return name == unmangle(name) + "'"
7916
7917 def parse_bool(self, expr: Expression) -> bool | None:
7918 # This wrapper is preserved for plugins.
7919 return parse_bool(expr)
7920
7921 def parse_str_literal(self, expr: Expression) -> str | None:
7922 """Attempt to find the string literal value of the given expression. Returns `None` if no

Callers 1

collect_attributesMethod · 0.45

Calls 1

parse_boolFunction · 0.90

Tested by

no test coverage detected