Skip to content

Commit

Permalink
remove unreachable code (#3328)
Browse files Browse the repository at this point in the history
fixes #3321
  • Loading branch information
nnrepos committed Oct 11, 2022
1 parent d923945 commit f16333e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/black/parsing.py
Expand Up @@ -165,8 +165,6 @@ def parse_single_version(
# comments separately.
return ast3.parse(src, filename, feature_version=version[1])

raise AssertionError("INTERNAL ERROR: Tried parsing unsupported Python version!")


def parse_ast(src: str) -> Union[ast.AST, ast3.AST]:
# TODO: support Python 4+ ;)
Expand Down

0 comments on commit f16333e

Please sign in to comment.