How can I avoid interface repetition in Python function signatures and docstrings?
I’m looking for a standard, lightweight (preferably built-in) way to handle the problem of interface repetition—where the same parameters (with annotations, defaults, and docs) are repeated across multiple functions that share common functionality. Is there a way to centralize the parameter definitions and docs without manually duplicating them?
How can I avoid interface repetition in Python function signatures and docstrings?
I’m looking for a standard, lightweight (preferably built-in) way to handle the problem of interface repetition—where the same parameters (with annotations, defaults, and docs) are repeated across multiple functions that share common functionality. Is there a way to centralize the parameter definitions and docs without manually duplicating them?