Skip to content

Add types for parameters #2962

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

Merged
merged 5 commits into from
Dec 30, 2023
Merged

Add types for parameters #2962

merged 5 commits into from
Dec 30, 2023

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented Dec 28, 2023

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

Types cannot be defined on parameter nodes

Issue Number: #2482

What is the new behavior?

Types are supported.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

image

@sz332 Should the direction be visible in the diagram as well (similar to Show Type)?

Update: direction can be toggled.

@github-actions github-actions bot added the python Pull requests that update Python code label Dec 28, 2023
@amolenaar amolenaar requested a review from sz332 December 29, 2023 10:28
@sz332
Copy link
Contributor

sz332 commented Dec 29, 2023

@amolenaar I think it would be nice to render a label (in, out, inout, return) before the name, but it could be made in a second PR as well.

@amolenaar amolenaar marked this pull request as draft December 29, 2023 20:19
@amolenaar amolenaar marked this pull request as ready for review December 29, 2023 21:22
@amolenaar amolenaar requested a review from danyeaw December 29, 2023 21:22
@amolenaar
Copy link
Member Author

Added a "Show Direction" option. And fixed the type assignment: type should be assigned to the parameter.

@danyeaw danyeaw added feature A new feature and removed python Pull requests that update Python code labels Dec 30, 2023
Copy link
Member

@danyeaw danyeaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice typed parameters FTW! :shipit:

@danyeaw danyeaw merged commit 11b7c99 into main Dec 30, 2023
@danyeaw danyeaw deleted the parameter-types branch December 30, 2023 15:32
@sz332
Copy link
Contributor

sz332 commented Dec 30, 2023

Awesome work!

@amolenaar
Copy link
Member Author

Thanks 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants