class BoolTypeQuery(SyntheticTypeVisitor[
Known subclasses: mypy.checkexpr.ArgInferSecondPassQuery
, mypy.checkexpr.HasAnyType
, mypy.checkexpr.HasErasedComponentsQuery
, mypy.checkexpr.HasTypeVarQuery
, mypy.checkexpr.HasUninhabitedComponentsQuery
, mypy.semanal_shared.HasPlaceholders
, mypy.types.HasRecursiveType
, mypy.types.HasTypeVars
Visitor for performing recursive queries of types with a bool result. Use TypeQuery if you need non-bool results. 'strategy' is used to combine results for a series of types. It must be ANY_STRATEGY or ALL_STRATEGY. Note: This visitor keeps an internal state (tracks type aliases to avoid recursion), so it should *never* be re-used for querying different types unless you call reset() first.
Method | __init__ |
Undocumented |
Method | query |
Perform a query for a sequence of types using the strategy to combine the results. |
Method | reset |
Clear mutable state (but preserve strategy). |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | seen |
Undocumented |
Instance Variable | skip |
Undocumented |
Instance Variable | strategy |
Undocumented |
mypy.checkexpr.ArgInferSecondPassQuery
, mypy.checkexpr.HasAnyType
, mypy.checkexpr.HasErasedComponentsQuery
, mypy.checkexpr.HasTypeVarQuery
, mypy.checkexpr.HasUninhabitedComponentsQuery
, mypy.semanal_shared.HasPlaceholders
, mypy.types.HasRecursiveType
, mypy.types.HasTypeVars
Undocumented
Clear mutable state (but preserve strategy). This *must* be called if you want to reuse the visitor.
mypy.type_visitor.TypeVisitor.visit_any
mypy.checkexpr.HasAnyType
Undocumented