Skip to content

Conversation

@jbaiter
Copy link
Contributor

@jbaiter jbaiter commented Nov 20, 2024

This implements the fix suggested in #15.

When PEP568 is enabled via from __future__ import annotations, type hints are only available in their string form when obtained via typing.get_args on the parameter. To obtain the actual hints, one needs to use typing.get_type_hints on the function itself.

Copy link
Owner

@comfuture comfuture left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes do not affect existing functionality and seem to resolve the issue. 👍🏼

@comfuture comfuture merged commit 4123f9a into comfuture:main Nov 20, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants