From c86cec5ceedccdcd294a59367734a8ef87c8c2ed Mon Sep 17 00:00:00 2001 From: Jordan Schneider Date: Sat, 26 Feb 2022 08:49:01 -0800 Subject: [PATCH] Used the wrong type --- omegaconf/_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/omegaconf/_utils.py b/omegaconf/_utils.py index 81af3be78..6368b2db9 100644 --- a/omegaconf/_utils.py +++ b/omegaconf/_utils.py @@ -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