Open lester-wu opened 3 years ago
Should be
cdk_workshop/cdk_workshop_stack.py:13: error: Argument "runtime" to "Function" has incompatible type "int"; expected "Runtime" [arg-type]
runtime=3,
^
PyCharm 2023.2.1 RC Build #PY-232.9559.11, built on August 10, 2023
I believe this happens when using the pretty = true
setting in mypy configuration, which turns on word wrapping: https://mypy.readthedocs.io/en/stable/config_file.html#confval-pretty
There is an undocumented command line argument --no-pretty
that the plugin could use.
Meanwhile as a workaround, remove pretty
from your mypy settings.
as a workaround, remove pretty from your mypy settings.
That fixed it! Thanks for getting back to me with that information! I'm good for now.
There is an undocumented command line argument --no-pretty that the plugin could use.
That would be splendid, and it is in fact documented, from mypy --help
--pretty Use visually nicer output in error messages: Use
soft word wrap, show source code snippets, and
show error location markers (inverse: --no-pretty)
it is in fact documented
Ah nice! I only checked the online docs.
Step 1: Are you in the right place?
Step 2: Describe your environment
0.11.2
2021.1 community
0.812
Step 3: Describe the problem:
Steps to reproduce:
Run
Check Current File
to run mypy on current mypyObserved Results:
Expected Results:
The error message is truncated so that I can not see the entire error message. Fox example, the complete message for the first error would be
Incompatible default for argument "arg1" (default has type "int", argument has type "str") [assignment]
, notIncompatible default for argument "arg1"
Relevant Code: