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

refactor: add type hints in strings.py and file.py #1565

Merged
merged 6 commits into from Mar 10, 2022

Conversation

rhythmrx9
Copy link
Contributor

part of #1539

@rhythmrx9 rhythmrx9 changed the title refactor: adding type hints in strings.py and file.py refactor: add type hints in strings.py and file.py Jan 31, 2022
Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

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

This looks like a good start, but I'd like to see type hints on every argument if possible. rather than just setting up the return type hint. e.g. is filename a str on line 14?

(I know, we haven't done this consistently elsewhere, but we're aiming for consistency that we'll be able to enforce, and this isn't quite there yet!)

cve_bin_tool/strings.py Outdated Show resolved Hide resolved
@terriko
Copy link
Contributor

terriko commented Feb 7, 2022

I think this is looking pretty good. I'm approving the CI to double-check the function on all platforms before I do a review. (CI keeps waiting on approval because you're a new contributor.)

@terriko
Copy link
Contributor

terriko commented Mar 10, 2022

Updating branch and re-running CI before merge.

@terriko terriko added the awaiting maintainer Need a maintainer to respond / help out label Mar 10, 2022
Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

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

Looks like one of the windows tests failed due to a network error, but this is good enough to merge. Thank you!

@terriko terriko merged commit 1635fa4 into intel:main Mar 10, 2022
@rhythmrx9 rhythmrx9 deleted the type_hints branch March 12, 2022 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting maintainer Need a maintainer to respond / help out
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants