Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

mypy: remove has_member (#8438) #29

Merged
merged 1 commit into from
Feb 25, 2020
Merged

mypy: remove has_member (#8438) #29

merged 1 commit into from
Feb 25, 2020

Conversation

sthagen
Copy link
Owner

@sthagen sthagen commented Feb 25, 2020

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())

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())
```
@sthagen sthagen merged commit 363796b into sthagen:master Feb 25, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants