Skip to content

Commit

Permalink
Remove useless cast.
Browse files Browse the repository at this point in the history
  • Loading branch information
chadrik committed Oct 19, 2016
1 parent 80ba6f3 commit 87e654d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/fastparse2.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def visit_FunctionDef(self, n: ast27.FunctionDef) -> Statement:
# hooks
if (not any(arg_types) and return_type is None and
hooks.docstring_parser):
doc = cast(bytes, ast27.get_docstring(n, clean=False))
doc = ast27.get_docstring(n, clean=False)
if doc:
doc = doc.decode('unicode_escape')
types = parse_docstring(doc, arg_names, n.lineno)
Expand Down

0 comments on commit 87e654d

Please sign in to comment.