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

Fix linter errors in asmap.py #5

Merged
merged 1 commit into from
May 31, 2022
Merged

Fix linter errors in asmap.py #5

merged 1 commit into from
May 31, 2022

Conversation

laanwj
Copy link

@laanwj laanwj commented May 30, 2022

This fixes a few (harmless) linter errors that occur while checking asmap.py in Bitcoin Core's python linter.
(submitted here in interest of keeping asmap.py the same in both places)

This fixes a few (harmless) linter errors that occur while
checking `asmap.py` in Bitcoin Core's python linter.
@sipa
Copy link
Owner

sipa commented May 30, 2022

Thanks!

The future annotations one really helped with making the mypy annotations here usable. Whether it's available probably depends on the Python version. But if it isn't... the annotations can also just be ignored.

Copy link

@jonatack jonatack left a comment

Choose a reason for hiding this comment

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

Concept ACK, these look to be the same as git diff b499e2d fdfa4c3 in bitcoin/bitcoin PR 24864.

@laanwj
Copy link
Author

laanwj commented May 30, 2022

This doesn't remove the annotations (nor the future line). I'm kind of divided on that. I fully agree annotations are useful. Would be tempted to just exclude asmap from the linter completely, until we bump the Python version…

@sipa
Copy link
Owner

sipa commented May 31, 2022

utACK 45496c7

@sipa sipa merged commit b39ef7d into sipa:nextgen May 31, 2022
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.

3 participants