You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- :name create :one
-- Create a new Recipient
INSERT INTO payments.recipient (
stripe_account_id
) VALUES (
NULL
)
RETURNING payments.recipient.*;
then generated stubs using yesql stubgen.
The stubs generated fine, but half of them were irrelevant and caused the following mypy linting errors:
src/payments/repository/recipient.pyi:176: error: Overloaded function signature 4 will never be matched: signature 1's parameter type(s) are the same or broader [misc]
src/payments/repository/recipient.pyi:189: error: Overloaded function signature 5 will never be matched: signature 2's parameter type(s) are the same or broader [misc]
src/payments/repository/recipient.pyi:203: error: Overloaded function signature 6 will never be matched: signature 3's parameter type(s) are the same or broader [misc]
I expected stub generation to create only relevant function signatures.
Description
Wrote the following raw sql:
then generated stubs using
yesql stubgen
.The stubs generated fine, but half of them were irrelevant and caused the following mypy linting errors:
I expected stub generation to create only relevant function signatures.
Generated stubs included below:
The text was updated successfully, but these errors were encountered: