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

Add a few missing type annotations #17043

Merged
merged 4 commits into from Jan 8, 2024
Merged

Add a few missing type annotations #17043

merged 4 commits into from Jan 8, 2024

Conversation

Rigidity
Copy link
Contributor

Purpose:

Adds type annotations that were missing in a few places, which mypy (configured more strictly for my editor, presumably) was complaining about.

Current Behavior:

New Behavior:

Testing Notes:

@Rigidity Rigidity added the Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog label Dec 12, 2023
@Rigidity Rigidity requested a review from a team as a code owner December 12, 2023 18:00
Copy link

coveralls-official bot commented Dec 12, 2023

Pull Request Test Coverage Report for Build 7389278716

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 90.476%

Totals Coverage Status
Change from base Build 7183835483: 0.2%
Covered Lines: 93965
Relevant Lines: 103809

💛 - Coveralls

AmineKhaldi
AmineKhaldi previously approved these changes Dec 12, 2023
@Rigidity Rigidity added the ready_to_merge Submitter and reviewers think this is ready label Dec 12, 2023
@github-actions github-actions bot added the merge_conflict Branch has conflicts that prevent merge to main label Dec 19, 2023
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link
Collaborator

@altendky altendky left a comment

Choose a reason for hiding this comment

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

I would guess your IDE isn't using mypy. If it were and was using the strict config or such it'd be complaining a lot more. But, I'm just guessing.

chia/util/struct_stream.py Outdated Show resolved Hide resolved
Co-authored-by: Kyle Altendorf <sda@fstab.net>
@github-actions github-actions bot removed the merge_conflict Branch has conflicts that prevent merge to main label Dec 19, 2023
Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

Co-authored-by: Kyle Altendorf <sda@fstab.net>
@Rigidity
Copy link
Contributor Author

I would guess your IDE isn't using mypy. If it were and was using the strict config or such it'd be complaining a lot more. But, I'm just guessing.

It should be, don't know why it didn't catch this. Do I need to configure it to lint more strictly?

altendky
altendky previously approved these changes Dec 20, 2023
@cmmarslender cmmarslender merged commit 3e6e087 into main Jan 8, 2024
265 checks passed
@cmmarslender cmmarslender deleted the fix-none-annotations branch January 8, 2024 14:36
mikehw pushed a commit to mikehw/chia-blockchain that referenced this pull request Jan 11, 2024
* Add a few missing type annotations

* Update chia/util/struct_stream.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Update chia/util/keyring_wrapper.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* add `ClassVar` import

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog ready_to_merge Submitter and reviewers think this is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants