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

Use positional-only args in certain function sigs #746

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

jcrist
Copy link
Owner

@jcrist jcrist commented Oct 14, 2024

Previously the type signatures noted for the json and msgpack modules weren't strictly accurate. The implementation only accepted positional args for certain parameters, but the signatures defined them as positional-or-keyword parameters. This PR rectifies that.

Note that this is not a change in behavior, this is only a change in the signatures that tools like mypy or pyright would use to check your code.

Fixes #705.

Previously the type signatures noted for the json and msgpack modules
weren't strictly accurate. The implementation only accepted positional
args for certain parameters, but the signatures defined them as
positional-or-keyword parameters. This PR rectifies that.

Note that this is _not_ a change in behavior, this is only a change in
the signatures that tools like `mypy` or `pyright` would use to check
your code.
@jcrist jcrist merged commit 6ee467e into main Oct 14, 2024
7 checks passed
@jcrist jcrist deleted the positional-only-params branch October 14, 2024 17:01
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.

Positional-only arguments
1 participant