Skip to content

Add default arguments to Workflow method type annotations#1857

Merged
s-t-e-v-e-n-k merged 1 commit intoPyGithub:masterfrom
jwodder:workflow-defaults
Mar 24, 2021
Merged

Add default arguments to Workflow method type annotations#1857
s-t-e-v-e-n-k merged 1 commit intoPyGithub:masterfrom
jwodder:workflow-defaults

Conversation

@jwodder
Copy link
Copy Markdown
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
Copy Markdown

@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.

3 participants