-
Notifications
You must be signed in to change notification settings - Fork 51
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
Address some mypy type hinting issues #2314
Address some mypy type hinting issues #2314
Conversation
…ntop', 'bridge', 'hollow', 'subsurface'
Can one of the admins verify this patch? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2314 +/- ##
==========================================
- Coverage 99.08% 99.06% -0.03%
==========================================
Files 84 84
Lines 3515 3519 +4
==========================================
+ Hits 3483 3486 +3
- Misses 32 33 +1 ☔ View full report in Codecov by Sentry. |
Hello @Andrew-S-Rosen To resolve the remaining MyPy issues, I need to understand the objective of this MR: #1903. The changes introduced have led to multiple MyPy errors due to assigning tuples as default values to variables of different data types. Is _DEFAULT_SETTING meant to always be empty ? Thank you ! |
Hi @AitElBadaoui! Thank you so much for putting together this PR. I really appreciate it!! These all look like great changes and, in fact, may even reduce some bugs. As for the test coverage, don't worry about it for this PR. No need to worry about test coverage for type hinting changes here. As for PR #1903, I can see how that might introduce some problems in hindsight. The reasoning behind the PR was that I thought I guess since the type hint is now "wrong", would you recommend that I switch back to |
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.
As for a review, here are my (minor) comments. Otherwise, this is in great shape for merging!
Yes, I agree that we should switch back to None. After that, I can create a new PR to address other mypy issues. |
@AitElBadaoui: wonderful! I will take care of that and merge this PR when I'm back at my computer in an hour or two. 👍 |
Merging this one. Thanks! |
c8074b0
into
Quantum-Accelerators:main
Summary of Changes
This merge request addresses some of the type hinting issues identified by MyPy.
Ref: #782.
Requirements
main
).Notes