The plugin crashes with a NPE with this mypy output:
gsi/model.py:101:5: error: Function is missing a type annotation
gsi/model.py:111:5: error: Function is missing a type annotation
gsi/model.py:119:5: error: Function is missing a type annotation
gsi/model.py:160:5: error: Function is missing a type annotation
gsi/model.py:169:80: error: Call to untyped function "Processor" in typed context
gsi/model.py:174:5: error: Function is missing a type annotation
gsi/model.py:187:5: error: Function is missing a type annotation
gsi/model.py:195: error: Function is missing a type annotation
gsi/model.py:196:34: error: Call to untyped function "CpuInfo" in typed context
gsi/model.py:197:36: error: Call to untyped function "MoboInfo" in typed context
gsi/repository.py:43:1: error: Function is missing a type annotation
gsi/repository.py:72:1: error: Function is missing a type annotation
gsi/repository.py:79: error: Function is missing a type annotation
gsi/repository.py:87:9: warning: Returning Any from function declared to return "Optional[CpuDbModel]"
gsi/repository.py:93: error: The return type of "__init__" must be None
gsi/repository.py:93: error: Function is missing a return type annotation
gsi/repository.py:98: error: Function is missing a type annotation for one or more arguments
gsi/repository.py:124:5: error: Function is missing a return type annotation
gsi/repository.py:139:9: error: Incompatible types in assignment (expression has type "None", variable has type "Processor")
gsi/repository.py:146:38: error: Call to untyped function "Processor" in typed context
gsi/repository.py:148:17: error: Call to untyped function "__parse_data" in typed context
gsi/repository.py:157:17: error: Argument 2 to "__update_processor_with_cpu" of "ProcCpuinfoRepository" has incompatible type "Optional[CpuDbModel]"; expected "CpuDbModel"
gsi/repository.py:167:5: error: Function is missing a type annotation
gsi/repository.py:178:47: error: Call to untyped function "clean_cpu_string" in typed context
gsi/repository.py:183: error: Function is missing a return type annotation
gsi/repository.py:206: error: Function is missing a type annotation
gsi/repository.py:213:5: error: Function is missing a return type annotation
gsi/repository.py:230:17: error: Call to untyped function "__read_cache_info" in typed context
gsi/repository.py:233:19: error: Call to untyped function "__update_cache_count" in typed context
gsi/repository.py:243: error: Function is missing a type annotation
gsi/repository.py:245:21: error: Call to untyped function "Cache" in typed context
gsi/repository.py:265: error: Function is missing a type annotation
gsi/repository.py:266:9: error: Incompatible types in assignment (expression has type "None", variable has type "Cache")
gsi/repository.py:267:9: error: Incompatible types in assignment (expression has type "None", variable has type "Cache")
gsi/repository.py:268:9: error: Incompatible types in assignment (expression has type "None", variable has type "Cache")
gsi/repository.py:269:9: error: Incompatible types in assignment (expression has type "None", variable has type "Cache")
gsi/repository.py:294: error: Function is missing a type annotation
gsi/repository.py:301:5: error: Function is missing a return type annotation
gsi/util.py:109:5: warning: Returning Any from function declared to return "Optional[str]"
gsi/util.py:144: error: Syntax error in type annotation
gsi/util.py:144: note: Suggestion: Use Tuple[T1, ..., Tn] instead of (T1, ..., Tn)
gsi/interactor.py:32: error: The return type of "__init__" must be None
gsi/interactor.py:32: error: Function is missing a return type annotation
gsi/interactor.py:45: error: The return type of "__init__" must be None
gsi/interactor.py:45: error: Function is missing a return type annotation
gsi/interactor.py:58: error: The return type of "__init__" must be None
gsi/interactor.py:58: error: Function is missing a return type annotation
gsi/interactor.py:70: error: Function is missing a type annotation
gsi/interactor.py:73:5: error: Function is missing a type annotation
gsi/presenter.py:35:5: error: Function is missing a type annotation
gsi/presenter.py:38:5: error: Function is missing a type annotation
gsi/presenter.py:41:5: error: Function is missing a type annotation
gsi/presenter.py:44:5: error: Function is missing a return type annotation
gsi/presenter.py:47:5: error: Function is missing a return type annotation
gsi/presenter.py:50:5: error: Function is missing a type annotation
gsi/presenter.py:53:5: error: Function is missing a type annotation
gsi/presenter.py:56:5: error: Function is missing a type annotation
gsi/presenter.py:59:5: error: Function is missing a type annotation
gsi/presenter.py:66: error: The return type of "__init__" must be None
gsi/presenter.py:66: error: Function is missing a return type annotation
gsi/presenter.py:74:9: error: Incompatible types in assignment (expression has type "None", variable has type "ViewInterface")
gsi/presenter.py:81:5: error: Function is missing a type annotation
gsi/presenter.py:96:5: error: Function is missing a type annotation
gsi/presenter.py:109:5: error: Function is missing a type annotation
gsi/presenter.py:112:5: error: Function is missing a type annotation
gsi/presenter.py:115:5: error: Function is missing a type annotation
gsi/presenter.py:118:5: error: Function is missing a type annotation
gsi/presenter.py:121:5: error: Function is missing a type annotation
gsi/presenter.py:124:5: error: Function is missing a type annotation
gsi/presenter.py:127:5: error: Function is missing a type annotation
gsi/presenter.py:143: error: Function is missing a type annotation for one or more arguments
gsi/view.py:40: error: The return type of "__init__" must be None
gsi/view.py:40: error: Function is missing a return type annotation
gsi/view.py:50:9: error: Call to untyped function "__init_widgets" in typed context
gsi/view.py:52:5: error: Function is missing a type annotation
gsi/view.py:62:5: error: Function is missing a type annotation
gsi/view.py:65:5: error: Function is missing a type annotation
gsi/view.py:73:5: error: Function is missing a type annotation
gsi/view.py:78:5: error: Function is missing a type annotation
gsi/view.py:82:5: error: Function is missing a return type annotation
gsi/view.py:85:13: error: Call to untyped function "init_system_info" in typed context
gsi/view.py:87:5: error: Function is missing a return type annotation
gsi/view.py:90:13: error: Call to untyped function "init_system_info" in typed context
gsi/view.py:92:5: error: Function is missing a type annotation
gsi/view.py:95:5: error: Function is missing a type annotation
gsi/view.py:98:5: error: Function is missing a type annotation
gsi/view.py:101:5: error: Function is missing a type annotation
gsi/view.py:104:5: error: Function is missing a return type annotation
gsi/view.py:127:13: error: Argument 2 to "__set_entries_with_label_text" of "View" has incompatible type "Dict[str, Optional[str]]"; expected "Dict[str, str]"
gsi/view.py:133:13: error: Argument 2 to "__set_entries_with_label_text" of "View" has incompatible type "Dict[str, Optional[str]]"; expected "Dict[str, str]"
gsi/view.py:139:13: error: Argument 2 to "__set_entries_with_label_text" of "View" has incompatible type "Dict[str, Optional[str]]"; expected "Dict[str, str]"
gsi/view.py:145:13: error: Argument 2 to "__set_entries_with_label_text" of "View" has incompatible type "Dict[str, Optional[str]]"; expected "Dict[str, str]"
gsi/view.py:170:5: error: Function is missing a return type annotation
gsi/view.py:182:5: error: Function is missing a return type annotation
gsi/view.py:194:5: error: Function is missing a return type annotation
gsi/view.py:205:5: error: Function is missing a return type annotation
gsi/view.py:216:5: error: Function is missing a return type annotation
gsi/view.py:225:5: error: Function is missing a return type annotation
gsi/view.py:240:5: error: Function is missing a return type annotation
gsi/view.py:256:5: error: Function is missing a return type annotation
gsi/app.py:33: error: The return type of "__init__" must be None
gsi/app.py:33: error: Function is missing a return type annotation
gsi/app.py:33: error: Function is missing a type annotation for one or more arguments
gsi/app.py:54:5: error: Function is missing a type annotation
gsi/app.py:64:5: error: Function is missing a type annotation
gsi/app.py:67:5: error: Function is missing a type annotation
Stacktrace:
java.lang.NullPointerException
at javax.swing.JComponent.scrollRectToVisible(JComponent.java:3109)
at com.dropbox.plugins.mypy_plugin.MypyRunner.runMypyDaemon(MypyRunner.java:86)
at com.dropbox.plugins.mypy_plugin.MypyTerminal$10.run(MypyTerminal.java:344)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
mypy.ini
[mypy]
# Specify the target platform details in config, so your developers are
# free to run mypy on Windows, Linux, or macOS and get consistent
# results.
python_version=3.6
platform=linux
show_column_numbers=True
# show error messages from unrelated files
follow_imports=skip
# suppress errors about unsatisfied imports
ignore_missing_imports=True
# be strict
disallow_untyped_calls=True
warn_return_any=True
strict_optional=True
warn_no_return=True
warn_redundant_casts=True
warn_unused_ignores=True
# The following are off by default. Flip them on if you feel
# adventurous.
disallow_untyped_defs=True
check_untyped_defs=True
# No incremental mode
cache_dir=/dev/null
PyCharm 2018.2.1 (Community Edition)
Build #PC-182.3911.33, built on August 5, 2018
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-32-generic
bug priority-high