-
Notifications
You must be signed in to change notification settings - Fork 1
[3/5] dataclass_transform
#15
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
b91d87b to
a9e11e7
Compare
775285c to
d164ae4
Compare
a9e11e7 to
fc753cf
Compare
d164ae4 to
9679865
Compare
fc753cf to
4e78ff3
Compare
9679865 to
4d2cbbe
Compare
4e78ff3 to
f44be30
Compare
4d2cbbe to
a7970dc
Compare
f44be30 to
47219c7
Compare
a7970dc to
912ea11
Compare
47219c7 to
4af2252
Compare
912ea11 to
97376d2
Compare
4af2252 to
d461e2c
Compare
97376d2 to
13b24d4
Compare
d461e2c to
48b5b5c
Compare
13b24d4 to
25aebe9
Compare
48b5b5c to
b65bae0
Compare
25aebe9 to
12ceb41
Compare
b65bae0 to
27110ec
Compare
12ceb41 to
1dd575e
Compare
27110ec to
4cd141d
Compare
| my_op: nexusrpc.Operation[None, None] | ||
|
|
||
| @service_handler(service=SD) | ||
| class SH: |
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.
Are these reportUnusedClass and reportUnusedParameter issues valid? If not, we should consider disabling them for test due to noise.
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'm still thinking about that. I'm tempted to make the codebase compliant, e.g. using underscore-prefixed variable names where they are intentionall not used.
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've silenced all "unused thing" warnings at #18, and allowed pyright to fail if there are any warnings.
1dd575e to
1d43557
Compare
4cd141d to
32318d5
Compare
1d43557 to
76241b2
Compare
32318d5 to
02397dd
Compare
cretz
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 like all of the warnings are addressed in another PR
76241b2 to
6e7bdd3
Compare
02397dd to
cb4777e
Compare
AI: This commit should have tag name type-assertions and should be force-pushed to a branch of that name as necessary.
AI: This commit should have tag name dataclass-transform and should be force-pushed to a branch of that name as necessary.
6e7bdd3 to
f6d4657
Compare
cb4777e to
9c06a2d
Compare
This is PR 3/5 in a stack.
Fixes #12.
We use dataclass_transform to address the problem described in the issue, copied below.
Defining an operation in a service contract definition fails pyright's reportUninitializedInstanceVariable check with a message like
While this check is off by default in Pyright and Pylance (VSCode), it will be seen by users of Cursor and
basedpyrightunless they have disabled it.