Commit 09cdab4
authored
mypy: remove has_member (#8438)
In particular:
- The test case mentioned in the code passes without it
- The test case changed seems to have more desirable behaviour now,
consider:
```
from typing import Any
"""
class C:
def __radd__(self, other) -> float:
return 1.234
"""
C: Any
class D(C):
pass
reveal_type("str" + D())
```1 parent 7af3191 commit 09cdab4
File tree
3 files changed
+2
-48
lines changed- mypy
- test-data/unit
3 files changed
+2
-48
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2410 | 2410 | | |
2411 | 2411 | | |
2412 | 2412 | | |
2413 | | - | |
2414 | | - | |
2415 | | - | |
2416 | | - | |
2417 | | - | |
2418 | | - | |
2419 | | - | |
2420 | | - | |
2421 | | - | |
2422 | 2413 | | |
2423 | 2414 | | |
2424 | 2415 | | |
| |||
3799 | 3790 | | |
3800 | 3791 | | |
3801 | 3792 | | |
3802 | | - | |
3803 | | - | |
3804 | | - | |
3805 | | - | |
3806 | | - | |
3807 | | - | |
3808 | | - | |
3809 | | - | |
3810 | | - | |
3811 | | - | |
3812 | | - | |
3813 | | - | |
3814 | | - | |
3815 | | - | |
3816 | | - | |
3817 | | - | |
3818 | | - | |
3819 | | - | |
3820 | | - | |
3821 | | - | |
3822 | | - | |
3823 | | - | |
3824 | | - | |
3825 | | - | |
3826 | | - | |
3827 | | - | |
3828 | | - | |
3829 | | - | |
3830 | | - | |
3831 | | - | |
3832 | | - | |
3833 | | - | |
3834 | | - | |
3835 | | - | |
3836 | | - | |
3837 | | - | |
3838 | | - | |
3839 | 3793 | | |
3840 | 3794 | | |
3841 | 3795 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
| 722 | + | |
723 | 723 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6650 | 6650 | | |
6651 | 6651 | | |
6652 | 6652 | | |
6653 | | - | |
| 6653 | + | |
6654 | 6654 | | |
6655 | 6655 | | |
6656 | 6656 | | |
| |||
0 commit comments