allow-extra-kwargs
A plugin for mypy that allows extra kwargs in function calls.
Description
allow-extra-kwargs is a Python package that provides a decorator and a mypy plugin to allow functions to accept extra
keyword arguments in a type-safe way.
Installation
You can install allow-extra-kwargs using pip:
pip install allow-extra-kwargs
Usage
Decorator Usage
To use the allow_extra_kwargs decorator in your code:
from allow_extra_kwargs import allow_extra_kwargs
@allow_extra_kwargs
def my_function(a: int) -> int:
return a
# Now you can call the function with extra kwargs
result = my_function(1, extra_arg="value")
Mypy Plugin
To enable the mypy plugin, add the following to your pyproject.toml:
[tool.mypy]
plugins = ["allow_extra_kwargs.mypy"]
Metadata
Release files for allow-extra-kwargs 0.1.1.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| allow_extra_kwargs-0.1.1.post1.tar.gz | 2.1 kB | Without provenance | Details for allow_extra_kwargs-0.1.1.post1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| allow_extra_kwargs-0.1.1.post1-py3-none-any.whl | Python 3 | none | any | Details for allow_extra_kwargs-0.1.1.post1-py3-none-any.whl |
Total release size: 5.0 kB
Release files / allow_extra_kwargs-0.1.1.post1.tar.gz
| Download URL | allow_extra_kwargs-0.1.1.post1.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34dc805c695a04b5f5c17fca0b70905314cc695a64badfbbadd7baad7fe955c8
|
|
BLAKE2b-256 checksum How to use checksums |
f123b01343efb8fca5fe6b0a72d700ab88117bcad97dc3c05d7406e71ae1ecf6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1025-azure
|
Release files / allow_extra_kwargs-0.1.1.post1-py3-none-any.whl
| Download URL | allow_extra_kwargs-0.1.1.post1-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4871b1879821eda33534afde4aa155466ec6254801e62e9ed27a622fae708623
|
|
BLAKE2b-256 checksum How to use checksums |
6b0e0784036d6c38f56ad71a447fdcdf0cf34f174df1d6a7efb991ab819560cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1025-azure
|
Security for allow-extra-kwargs 0.1.1.post1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.