Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mypy: remove has_member (#8438) #29

New issue

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

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

Already on GitHub? Sign in to your account

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants