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

Update the type for issue in add_comment & transition_issue for better type hints #1580

Merged
merged 1 commit into from
May 15, 2023

Conversation

dvaerum
Copy link
Contributor

@dvaerum dvaerum commented Dec 28, 2022

I have found that these 2 function works with both the type "str" and "ISSUE" because whatever one adds as the issue argument is converted to a string, and when the class Issue is converted to a string it returns the issue-key.
So, this should give better type hinting, and I am sure there are more place in the code this scenario exists 😄

@adehad adehad added the feature label Feb 8, 2023
@adehad
Copy link
Contributor

adehad commented Feb 8, 2023

Thanks @dvaerum, could you rebase and see if this fixes the any issues.

Also a reminder to update the docstrings !

@dvaerum dvaerum force-pushed the add_more_type_hints branch 3 times, most recently from ab61918 to 2b8f8c4 Compare May 12, 2023 18:02
@dvaerum
Copy link
Contributor Author

dvaerum commented May 12, 2023

Thanks @dvaerum, could you rebase and see if this fixes the any issues.

Also a reminder to update the docstrings !

Done, but I am not certain why ci/cloud/py3.8 fails

Copy link
Contributor

@adehad adehad left a comment

Choose a reason for hiding this comment

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

Yep don't worry about the cloud tests, there are some github limitations that prevent pull requests accessing the required env vars.

Thanks for sorting these out!

@adehad adehad merged commit 005cd22 into pycontribs:main May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants