A Python library for enforcing keyword-only arguments in function signatures. Version 2026.6.4 requires Python 3.11+. It provides a decorator that forces all arguments after a certain point to be passed as keyword arguments, reducing bugs from positional argument misuse. No breaking changes have been reported recently.
pip install strict-kwargsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Decorate a function with @strict_kwargs to require all arguments to be passed as keyword arguments.
Always use keyword arguments when calling a decorated function.
self or cls can still be passed positionally; all other arguments become keyword-only.
Use the decorator only to enforce keyword usage for other parameters.
No dependency data recorded yet.