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

Export symbols to satisfy type checkers #1551

Merged
merged 4 commits into from Apr 1, 2023

Conversation

zariiii9003
Copy link
Collaborator

Closes #1547

This also introduces ruff with isort, pyupgrade and the unused-imports check.

@felixdivo The version with the import x as x reexport can be seen here. I think that one is less ugly, but i don't care too much.

Copy link
Collaborator

@felixdivo felixdivo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't go through every change, but the tooling additons and general changes are great!

@zariiii9003
Copy link
Collaborator Author

@felixdivo Thanks for taking a look.

Coveralls is failing, that's a new one

@zariiii9003
Copy link
Collaborator Author

@tjohanssonn Could you try this branch with pyright?

@zariiii9003 zariiii9003 merged commit 1188c57 into hardbyte:develop Apr 1, 2023
31 checks passed
@zariiii9003 zariiii9003 deleted the ruff branch April 1, 2023 21:08
@tjohanssonn
Copy link

@zariiii9003 Sorry for the delay. I've tested the branch and it seems to be working! Thanks for the quick attention and fix. Only issue that remains now is the:

Cannot instantiate abstract class "Bus"
"BusABC.init" is abstract
"BusABC.send" is abstract

But that was not part of my issue #1547, so that issue is ✅

This was referenced Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Package not re-exporting symbols in package __init__.py
3 participants