-
Notifications
You must be signed in to change notification settings - Fork 857
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: updating type hints batch 1 #1968
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #1968 +/- ##
==========================================
+ Coverage 60.51% 60.69% +0.17%
==========================================
Files 183 183
Lines 22498 22631 +133
Branches 2127 2128 +1
==========================================
+ Hits 13614 13735 +121
- Misses 8162 8175 +13
+ Partials 722 721 -1 ☔ View full report in Codecov by Sentry. |
Removing a redundant self.triggers key setting since its a defaultdict!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that lots of these type hints are redundant but its probably also okay to have them.
I just hope that this does not impact the startup performance since this may not be obvious to spot on. I may make some benchmarking of this. On the other hand, the from __future__ import annotations
may save us some load time and also type hints for local variables within functions are no-ops.
Actually, this now fails the linting due to |
@disconnect3d in |
That’s not a good solution :p we have to fix those issues and run mypy,
there is a reason we run it :D
…On Thu, 28 Dec 2023 at 17:43, HackSys Team ***@***.***> wrote:
@disconnect3d <https://github.com/disconnect3d> in lint.sh I have changed
the command to mypy pwndbg || true which will make the CI job to not fail
—
Reply to this email directly, view it on GitHub
<#1968 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACMLWCXWDTOGFUOARMYSMY3YLWOUFAVCNFSM6AAAAABA6FXK3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZRGMZTGNZQGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Closing this in favor of #1970 |
This PR is the first batch of type hints fixes. It is tough to do everything at once, so I'm sending the pull requests in batches.