summaryrefslogtreecommitdiff
path: root/isort/literal.py
diff options
context:
space:
mode:
Diffstat (limited to 'isort/literal.py')
-rw-r--r--isort/literal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/isort/literal.py b/isort/literal.py
index 01bd05e7..0b1838fe 100644
--- a/isort/literal.py
+++ b/isort/literal.py
@@ -41,7 +41,7 @@ def assignment(code: str, sort_type: str, extension: str, config: Config = DEFAU
"""
if sort_type == "assignments":
return assignments(code)
- elif sort_type not in type_mapping:
+ if sort_type not in type_mapping:
raise ValueError(
"Trying to sort using an undefined sort_type. "
f"Defined sort types are {', '.join(type_mapping.keys())}."