(
mx: MemberContext, hook: Callable[[AttributeContext], Type] | None, result: Type
)
| 1338 | |
| 1339 | |
| 1340 | def apply_class_attr_hook( |
| 1341 | mx: MemberContext, hook: Callable[[AttributeContext], Type] | None, result: Type |
| 1342 | ) -> Type | None: |
| 1343 | if hook: |
| 1344 | result = hook( |
| 1345 | AttributeContext( |
| 1346 | get_proper_type(mx.original_type), result, mx.is_lvalue, mx.context, mx.chk |
| 1347 | ) |
| 1348 | ) |
| 1349 | return result |
| 1350 | |
| 1351 | |
| 1352 | def analyze_enum_class_attribute_access( |
no test coverage detected
searching dependent graphs…