Analyse member access that is external, i.e. it cannot refer to private definitions. Return the result type.
(
self, member: str, base_type: Type, context: Context
)
| 3465 | return member_type |
| 3466 | |
| 3467 | def analyze_external_member_access( |
| 3468 | self, member: str, base_type: Type, context: Context |
| 3469 | ) -> Type: |
| 3470 | """Analyse member access that is external, i.e. it cannot |
| 3471 | refer to private definitions. Return the result type. |
| 3472 | """ |
| 3473 | # TODO remove; no private definitions in mypy |
| 3474 | return analyze_member_access( |
| 3475 | member, |
| 3476 | base_type, |
| 3477 | context, |
| 3478 | is_lvalue=False, |
| 3479 | is_super=False, |
| 3480 | is_operator=False, |
| 3481 | original_type=base_type, |
| 3482 | chk=self.chk, |
| 3483 | in_literal_context=self.is_literal_context(), |
| 3484 | ) |
| 3485 | |
| 3486 | def is_literal_context(self) -> bool: |
| 3487 | return is_literal_type_like(self.type_context[-1]) |
no test coverage detected