Skip to content

Preserve Type Hints in decorators #64

Description

@steamraven

With Python 3.10 (and earlier with typing_extensions), we now have access to allow decorators to properly forward type hints from the wrapped function.

More details can be found here
https://stackoverflow.com/questions/74074580/how-to-avoid-losing-type-hinting-of-decorated-function

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions