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

stubtest: Add a --ignore-keyword-only argument #16861

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Viicos
Copy link
Contributor

@Viicos Viicos commented Feb 2, 2024

Similar to --ignore-positional-only, but for kw only.

It is sometimes common to make some arguments keyword only in stubs even if not at runtime, e.g. when defining overloads.

See typeddjango/django-stubs#1900 for an example use case

@Viicos Viicos force-pushed the stubtest-ignore-positional-only branch from 9d9e60d to aef90a3 Compare February 2, 2024 17:22
@JelleZijlstra JelleZijlstra changed the title stubtest: Add a --ignore-positional-only argument stubtest: Add a --ignore-keyword-only argument Feb 2, 2024
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.

1 participant