Skip to content

Fix(UT): fix type checker error raised by pyright #241

Fix(UT): fix type checker error raised by pyright

Fix(UT): fix type checker error raised by pyright #241

Triggered via pull request June 27, 2024 03:58
Status Failure
Total duration 3m 31s
Artifacts

pyright.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 6 warnings
pyright: fpop/abacus.py#L517
Method "prep_task" overrides class "PrepFp" in an incompatible manner   Parameter 3 name mismatch: base parameter is named "inputs", override parameter is named "abacus_inputs" (reportIncompatibleMethodOverride)
pyright: fpop/abacus.py#L639
Argument of type "bool" cannot be assigned to parameter "input" of type "str | None" in function "run_command"   Type "bool" is incompatible with type "str | None"     "bool" is incompatible with "str"     "bool" is incompatible with "None" (reportArgumentType)
pyright: fpop/prep_fp.py#L87
Method "execute" overrides class "OP" in an incompatible manner   Parameter 2 name mismatch: base parameter is named "op_in", override parameter is named "ip" (reportIncompatibleMethodOverride)
pyright: fpop/preprun_fp.py#L85
Argument of type "OP | ABCMeta" cannot be assigned to parameter "prep_op" of type "OP" in function "_prep_run_fp"   Type "OP | ABCMeta" is incompatible with type "OP"     "ABCMeta" is incompatible with "OP" (reportArgumentType)
pyright: fpop/preprun_fp.py#L86
Argument of type "OP | ABCMeta" cannot be assigned to parameter "run_op" of type "OP" in function "_prep_run_fp"   Type "OP | ABCMeta" is incompatible with type "OP"     "ABCMeta" is incompatible with "OP" (reportArgumentType)
pyright: fpop/preprun_fp.py#L148
Argument of type "List[str] | None" cannot be assigned to parameter "python_packages" of type "List[PathLike[Unknown]] | None" in function "__init__" (reportArgumentType)
pyright: fpop/preprun_fp.py#L179
Argument of type "List[str] | None" cannot be assigned to parameter "python_packages" of type "List[PathLike[Unknown]] | None" in function "__init__" (reportArgumentType)
pyright: fpop/run_fp.py#L110
Method "execute" overrides class "OP" in an incompatible manner   Parameter 2 name mismatch: base parameter is named "op_in", override parameter is named "ip" (reportIncompatibleMethodOverride)
pyright: fpop/vasp.py#L155
Method "prep_task" overrides class "PrepFp" in an incompatible manner   Parameter 3 name mismatch: base parameter is named "inputs", override parameter is named "vasp_inputs" (reportIncompatibleMethodOverride)
pyright: fpop/vasp.py#L260
Argument of type "bool" cannot be assigned to parameter "input" of type "str | None" in function "run_command"   Type "bool" is incompatible with type "str | None"     "bool" is incompatible with "str"     "bool" is incompatible with "None" (reportArgumentType)
pyright
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-python@v4, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
pyright: tests/test_prep_run_vasp.py#L94
Expression value is unused (reportUnusedExpression)
pyright: tests/test_run_abacus.py#L5
Import "mock" could not be resolved from source (reportMissingModuleSource)
pyright: tests/test_run_abacus.py#L5
Import "mock.mock" could not be resolved from source (reportMissingModuleSource)
pyright: tests/test_run_vasp.py#L5
Import "mock" could not be resolved from source (reportMissingModuleSource)
pyright: tests/test_run_vasp.py#L5
Import "mock.mock" could not be resolved from source (reportMissingModuleSource)