Skip to content

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