-
Notifications
You must be signed in to change notification settings - Fork 1
Type check the package in CI #158
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #158 +/- ##
==========================================
+ Coverage 93.26% 93.65% +0.38%
==========================================
Files 24 24
Lines 832 946 +114
Branches 67 85 +18
==========================================
+ Hits 776 886 +110
- Misses 40 42 +2
- Partials 16 18 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
a6001eb to
e4a173c
Compare
Python 3.12 has much more pleasant syntax for generic type variables, and supports the type keyword for aliases.
Fixing one pyright error at a time... The protocols are replaced with abstract base classes, as that is effectively how they are used. This will also improve the type checking situation for downstream projects.
e4a173c to
219577e
Compare
This seems to be a problem in every package with setup-configuration support, need to do something about it in the future.
Subclassing a union type is not possible, which highlighted that the registry is generic as long as the base plugin API is implemented.
SilviaAmAm
left a comment
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.
Looks good! I had initially implemented it with the abstract classes, but then I had struggled with it in the backend get_or_create_user because it felt clunky.
And now it looks so natural 😅
Uh oh!
There was an error while loading. Please reload this page.