Skip to content

Commit

Permalink
Used the wrong type
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-schneider committed Feb 26, 2022
1 parent 3c115d7 commit 1592df4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion omegaconf/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,9 @@ def is_literal_annotation(type_: Any) -> bool:
return (
origin is Literal
or type_ is Literal
or ("typing_extensions.Literal" in str(type_) and not isinstance(type, str))
or (
"typing_extensions.Literal" in str(type_) and not isinstance(type_, str)
)
) # pragma: no cover


Expand Down

0 comments on commit 1592df4

Please sign in to comment.