You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: don't return syntax error for Annotated's metadata (#580)
* fix: don't return syntax error for Annotated's metadata
PEP 593 https://www.python.org/dev/peps/pep-0593/ introduced the type Annotated, which allows to add metadata to types. By the definition only the first argument is required to be a proper type, all the other arguments are dependent on the consumer and can be other types or even literals.
This PR fixes#574.
* fix whitespace
* fix tests and formatting
* PR comments from asottile
* fix _in_annotation and remove _in_typing_annotated field
* fix test name
* get rid of _exit_annotation in favor of _entger_annotation(AnnotationState.None)
* handle Annotated in python3.9+
Co-authored-by: Anthony Sottile <[email protected]>
0 commit comments