Skip to content

Commit

Permalink
stubtest: fix broken error message for async/sync mismatch (#13414)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored Aug 14, 2022
1 parent 8020f78 commit f8fc26e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/stubtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ def verify_funcitem(
stub_sig = Signature.from_funcitem(stub)
runtime_sig = Signature.from_inspect_signature(signature)
runtime_sig_desc = f'{"async " if runtime_is_coroutine else ""}def {signature}'
stub_desc = f"def {stub_sig!r}"
stub_desc = str(stub_sig)
else:
runtime_sig_desc, stub_desc = None, None

Expand Down

0 comments on commit f8fc26e

Please sign in to comment.