(name: str, typ: UnionType, mx: MemberContext)
| 499 | |
| 500 | |
| 501 | def analyze_union_member_access(name: str, typ: UnionType, mx: MemberContext) -> Type: |
| 502 | with mx.msg.disable_type_names(): |
| 503 | results = [] |
| 504 | for subtype in typ.relevant_items(): |
| 505 | # Self types should be bound to every individual item of a union. |
| 506 | item_mx = mx.copy_modified(self_type=subtype) |
| 507 | results.append(_analyze_member_access(name, subtype, item_mx)) |
| 508 | return make_simplified_union(results) |
| 509 | |
| 510 | |
| 511 | def analyze_none_member_access(name: str, typ: NoneType, mx: MemberContext) -> Type: |
no test coverage detected
searching dependent graphs…