if isinstance(current_target, JvmTarget):
# Some code...
if isinstance(current_target, RuntimePlatformMixin):
info["runtime_platform"] = current_target.runtime_platform.name
In CI, mypy complains that:
src/python/pants/backend/project_info/tasks/export_dep_as_jar.py: note: In member "_process_target" of class "ExportDepAsJar":
Statement is unreachable [misc]
info["runtime_platform"] = current_target.runtime_plat...
Which is apparently a thing in the presence of multiple inheritance https://github.com/python/mypy/issues/3603
Is it okay to skip typechecking in this line, with a reference to the issue (or one of the follow ups, since that one is closed)? cc\ @hundreds-father-404
04/01/2020, 5:09 PM
yes, that is okay to skip :)
please do link to the issue + use the error code in your skip, e.g.