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

Method bool_type

mypy/checkexpr.py:6456–6458  ·  view source on GitHub ↗

Return instance type 'bool'.

(self)

Source from the content-addressed store, hash-verified

6454 return self.named_type("builtins.object")
6455
6456 def bool_type(self) -> Instance:
6457 """Return instance type 'bool'."""
6458 return self.named_type("builtins.bool")
6459
6460 @overload
6461 def narrow_type_from_binder(self, expr: Expression, known_type: Type) -> Type: ...

Callers 2

visit_comparison_exprMethod · 0.95
visit_unary_exprMethod · 0.95

Calls 1

named_typeMethod · 0.95

Tested by

no test coverage detected