Skip to content

Commit

Permalink
oops, fix setup.py correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Technologicat committed Feb 11, 2021
1 parent 0aec38a commit 5f8aba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def read(*relpath, **kwargs):
if line.startswith("__version__"):
module = ast.parse(line)
expr = module.body[0]
assert isinstance(expr, ast.Expr)
assert isinstance(expr, ast.Assign)
v = expr.value
if type(v) is ast.Constant:
# mypy understands `isinstance(..., ...)` but not `type(...) is ...`,
Expand Down

0 comments on commit 5f8aba1

Please sign in to comment.