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

dpu-tools: Fix _SubParserAction by removing Any #28

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

SamD2021
Copy link
Contributor

@SamD2021 SamD2021 commented Dec 4, 2024

Importing annotations from __future__ seems to be the mypy supported way to annotate the _SubParserAction. Otherwise it gives a runtime error about how 'type' object is not subscriptable.
https://mypy.readthedocs.io/en/stable/runtime_troubles.html#future-annotations-import-pep-563

@SalDaniele
Copy link
Contributor

LGTM

@SalDaniele
Copy link
Contributor

@wizhaoredhat any chance you have merge permissions on this repo and can help us get this in?

@wizhaoredhat
Copy link
Contributor

@SalDaniele Nope

@bn222 bn222 merged commit a87134d into bn222:main Dec 16, 2024
1 check passed
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.

4 participants