-
-
Notifications
You must be signed in to change notification settings - Fork 544
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 support for PyRight #922
Conversation
Codecov Report
@@ Coverage Diff @@
## main #922 +/- ##
==========================================
+ Coverage 97.55% 97.57% +0.01%
==========================================
Files 88 88
Lines 3319 3335 +16
Branches 477 478 +1
==========================================
+ Hits 3238 3254 +16
Misses 45 45
Partials 36 36 |
71c3d3e
to
e8f02d7
Compare
e35205b
to
585c4cc
Compare
de0c489
to
3b77f3b
Compare
5298b31
to
6cf7534
Compare
39d97b5
to
2fe67db
Compare
Hi 👋 You can find a preview of the docs here: |
strawberry/federation.py
Outdated
federation=FederationFieldParams( | ||
provides=provides or [], requires=requires or [], external=external | ||
), | ||
) | ||
) # type: ignore |
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.
sadly, both mypy and pyright fail here :(
Thanks for adding the Here's a preview of the changelog: This release adds support for Pyright and Pylance, improving the Here's the preview release card for twitter: Here's the tweet text:
|
430b65c
to
89b5ecd
Compare
Co-authored-by: Jonathan Kim <[email protected]>
PyRight might implement implicit init support: microsoft/pyright#2256 🥳🥳🥳
e5b2697
to
67031eb
Compare
Going to wait for this issue to be solved before merging this PR 😊 microsoft/pyright#2256 |
Description
This PR adds support for pyright following the specification outlined here:
https://github.com/microsoft/pyright/blob/master/specs/dataclass_transforms.md and here: microsoft/pyright#1782
The specification is still work in progress, but there's no harm in supporting it.
As you see from our discussion here we might never get full support for pyright:
microsoft/pyright#1782 (comment)
I've implemented the suggestedWe got support for not having to pass init! 😊init
parameter workaround, maybe in future we can get rid of it :)Types of Changes