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

Add default arguments to Workflow method type annotations #1857

Merged
merged 1 commit into from Mar 24, 2021
Merged

Add default arguments to Workflow method type annotations #1857

merged 1 commit into from Mar 24, 2021

Conversation

jwodder
Copy link
Contributor

@jwodder jwodder commented Feb 19, 2021

The type annotations for Workflow.create_dispatch() and Workflow.get_runs() do not include the fact that some of the arguments have default values. As a result, user code that calls, say, workflow.get_runs() without specifying any arguments will not validate with mypy. This PR fixes that.

Copy link

@jobveldhuis jobveldhuis left a comment

Choose a reason for hiding this comment

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

LGTM

@s-t-e-v-e-n-k s-t-e-v-e-n-k merged commit 7d6bac9 into PyGithub:master Mar 24, 2021
@jwodder jwodder deleted the workflow-defaults branch September 30, 2023 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants