Skip to content
Discussion options

You must be logged in to vote

Looks like #22 was just an artifact of the types being defined within a pytest fixture. Running https://github.com/treykeown/arguably/blob/main/etc/scripts/build.py with from __future__ import annotations at the top works just fine.

To answer your question - yes, it's supported. The caveat is the normal troubles you'll encounter with using get_type_hints with from __future__ import annotations. For arguably, classes defined in a local scope will not work for type hints.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@treykeown
Comment options

Answer selected by treykeown
@pawamoy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants