-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: future annotations with custom types (#296)
Fixes #295 When combining from __future__ import annotations, Annotated, and custom types, the click parser does not have access to the custom type class at runtime unless the eval_str option is provided to inspect.signature(). Unfortunately, this option is not available for python 3.9 or below. This fixes the bug for python 3.10+ and adds a workaround in the docs for 3.9. --------- Co-authored-by: Matthew Anderson <matt@mandersience.com>
- Loading branch information
Showing
4 changed files
with
174 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters