KotlinIsland / KotlinIsland/basedmypy
Think about how `Any` should interact with `Intersection`s
Open
topic-intersection
- Dominant language
- Python
- Stars
- 202
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
```py
class A:
a: int
x: A & Any
reveal_type(x) # A? A & Any?
reveal_type(x.a) # int? int & Any?
reveal_type(x.b) # error? Any?
```
I think the `Any` should just be deleted and it becomes `A`.
Contributor guide
Research direction
The issue provides only a Python example involving Any and intersections, with no files, tests, or entry points named. Start by determining the intended types for x, x.a, and x.b; done means reaching a clear decision on these semantics and covering the decision in the checker’s tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100