8000 Remove useless cast. · python/mypy@87e654d · GitHub
[go: up one dir, main page]

Skip to content

Commit 87e654d

Browse files
committed
Remove useless cast.
1 parent 80ba6f3 commit 87e654d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/fastparse2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def visit_FunctionDef(self, n: ast27.FunctionDef) -> Statement:
298298
# hooks
299299
if (not any(arg_types) and return_type is None and
300300
hooks.docstring_parser):
301-
doc = cast(bytes, ast27.get_docstring(n, clean=False))
301+
doc = ast27.get_docstring(n, clean=False)
302302
if doc:
303303
doc = doc.decode('unicode_escape')
304304
types = parse_docstring(doc, arg_names, n.lineno)

0 commit comments

Comments
 (0)
0