Motivation
Decorators handling remapping, redirection, and deprecation currently obscure the original callable from static analysis. Tools relying on AST parsing (e.g., IDEs, Mypy, Sphinx) lose source mapping, signature visibility, and type hints of the decorated functions or classes.
Pitch
Explore and validate approaches to make all decorators in the library strictly AST-friendly, preserving traceability for remapped targets.
Validation tasks to explore:
- Identify specific remap decorators breaking static analysis.
- Investigate mechanisms to preserve AST traceability across the board.
- Determine the feasibility, maintainability, and runtime overhead of these approaches.
Alternatives
No specific alternatives proposed yet; this issue serves to initiate exploration and validation of potential implementations.
Additional context
No response
Motivation
Decorators handling remapping, redirection, and deprecation currently obscure the original callable from static analysis. Tools relying on AST parsing (e.g., IDEs, Mypy, Sphinx) lose source mapping, signature visibility, and type hints of the decorated functions or classes.
Pitch
Explore and validate approaches to make all decorators in the library strictly AST-friendly, preserving traceability for remapped targets.
Validation tasks to explore:
Alternatives
No specific alternatives proposed yet; this issue serves to initiate exploration and validation of potential implementations.
Additional context
No response