Skip to content

Ensure all remap decorators are AST-friendly #199

Description

@Borda

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions