-
Notifications
You must be signed in to change notification settings - Fork 1
Fix/fix type errors #296
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
base: main
Are you sure you want to change the base?
Fix/fix type errors #296
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #296 +/- ##
=======================================
Coverage 91.54% 91.55%
=======================================
Files 42 42
Lines 2070 2083 +13
=======================================
+ Hits 1895 1907 +12
- Misses 175 176 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
||
| class LegacyDistroVersion(BaseDistroVersion): | ||
| def __init__(self, major, patch): | ||
| def __init__(self: Self, major: int, patch: int) -> None: |
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.
AFAIK self can be left without typing hint as the type checkers are "smart" enough to know what self mean for Python classes.
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 thought so too, but mypy seemed to disagree
What this PR does / why we need it:
Fixes the remaining typing errors thrown by
mypy.Adds two new dependencies:
boto3-stubsforboto3type information andmypyas dev dependency to allow setup of the dev environment via poetry.Which issue(s) this PR fixes:
Fixes #152
Special notes for your reviewer:
Release note: