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

Rework how a typed parameter is handled #311

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

ericwb
Copy link
Contributor

@ericwb ericwb commented Feb 29, 2024

This change utilizes the visitor pattern to process nodes of type typed_parameter and typed_default_parameter instead of manually checking children of the function def. This works because typed parameters are only within function defs.

This commit also adds test cases to ensure this is working.

This change also protects against the traceback found when encountering an unexpected *arg as a function parameter.

Fixes #310

This change utilizes the visitor pattern to process nodes of
type typed_parameter and typed_default_parameter instead of
manually checking children of the function def. This works because
typed parameters are only within function defs.

This commit also adds test cases to ensure this is working.

This change also protects against the traceback found when
encountering an unexpected *arg as a function parameter.

Fixes securesauce#310

Signed-off-by: Eric Brown <[email protected]>
@ericwb ericwb merged commit 836db2d into securesauce:main Feb 29, 2024
8 checks passed
@ericwb ericwb deleted the typed_params branch February 29, 2024 22:18
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.

Traceback during analysis
1 participant