Skip to content
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

Fperrin funcdef arguments optional #3

Closed
wants to merge 2 commits into from

Conversation

fperrin
Copy link
Owner

@fperrin fperrin commented Mar 22, 2022

POC for python#12324

@github-actions

This comment has been minimized.

@fperrin fperrin force-pushed the fperrin-funcdef-arguments-optional branch from 5614cd1 to 0198b68 Compare March 22, 2022 14:08
@github-actions

This comment has been minimized.

When FuncDef is deserialized we don't reconstruct the arguments.
Previous code was deleting the attribute, leading to python#11899; instead,
always set the attribute, maybe to None, and mypy can remind us to
check for not None before use.
@fperrin fperrin force-pushed the fperrin-funcdef-arguments-optional branch from 0198b68 to 370a035 Compare March 22, 2022 15:01
@github-actions
Copy link

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@fperrin fperrin closed this May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant