Skip to content
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

mypy: Cannot instantiate abstract class "ESPNow" with abstract attribute "__next__" #737

Open
Josverl opened this issue Dec 29, 2023 · 0 comments
Labels
mypy report Typecheck issue reported by mypy

Comments

@Josverl
Copy link
Owner

Josverl commented Dec 29, 2023

for the code:

import espnow
e = espnow.ESPNow()

Cannot instantiate abstract class "ESPNow" with abstract attribute "next"

this is caused by the docstubs adding a fake baseclass to support the iterator in a few other cases
"ESPNow": "ESPNowBase,Iterator", # causes issue with mypy
to resolve some issues reported by pyright

IIRC also about __next__ missing

@Josverl Josverl added the mypy report Typecheck issue reported by mypy label Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mypy report Typecheck issue reported by mypy
Projects
None yet
Development

No branches or pull requests

1 participant