Skip to content

Python3 deploy action mypy to review this pr.new #2

Python3 deploy action mypy to review this pr.new

Python3 deploy action mypy to review this pr.new #2

Triggered via pull request January 30, 2024 08:25
Status Success
Total duration 27s
Artifacts

python-code-review.yml

on: pull_request
Python Code Review
19s
Python Code Review
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
Python Code Review: scripts/hfx_filename#L43
[mypy] reported by reviewdog 🐶 Incompatible types in assignment (expression has type "str", variable has type "List[str]") [assignment] Raw Output: /home/runner/work/xen-api/xen-api/scripts/hfx_filename:43:19: error: Incompatible types in assignment (expression has type "str", variable has type "List[str]") [assignment]
Python Code Review: scripts/perfmon#L298
[mypy] reported by reviewdog 🐶 Incompatible types in assignment (expression has type "str", target has type "int") [assignment] Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:298:31: error: Incompatible types in assignment (expression has type "str", target has type "int") [assignment]
Python Code Review: scripts/perfmon#L299
[mypy] reported by reviewdog 🐶 Incompatible types in assignment (expression has type "str", target has type "int") [assignment] Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:299:34: error: Incompatible types in assignment (expression has type "str", target has type "int") [assignment]
Python Code Review: scripts/perfmon#L300
[mypy] reported by reviewdog 🐶 Incompatible types in assignment (expression has type "str", target has type "int") [assignment] Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:300:29: error: Incompatible types in assignment (expression has type "str", target has type "int") [assignment]
Python Code Review: scripts/perfmon#L301
[mypy] reported by reviewdog 🐶 Incompatible types in assignment (expression has type "str", target has type "int") [assignment] Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:301:35: error: Incompatible types in assignment (expression has type "str", target has type "int") [assignment]
Python Code Review: scripts/perfmon#L390
[mypy] reported by reviewdog 🐶 No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload] Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:390:22: error: No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload]
Python Code Review: scripts/perfmon#L391
[mypy] reported by reviewdog 🐶 No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload] Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:391:23: error: No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload]
Python Code Review: scripts/perfmon#L392
[mypy] reported by reviewdog 🐶 No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload] Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:392:50: error: No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload]
Python Code Review: scripts/perfmon#L517
[mypy] reported by reviewdog 🐶 Incompatible types in string interpolation (expression has type "Optional[Any]", placeholder has type "Union[int, float, SupportsFloat]") [str-format] Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:517:46: error: Incompatible types in string interpolation (expression has type "Optional[Any]", placeholder has type "Union[int, float, SupportsFloat]") [str-format]
Python Code Review: scripts/perfmon#L1095
[mypy] reported by reviewdog 🐶 Statement is unreachable [unreachable] Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:1095:13: error: Statement is unreachable [unreachable]
Python Code Review: scripts/hfx_filename#L1
[mypy] reported by reviewdog 🐶 In function "rpc": Raw Output: /home/runner/work/xen-api/xen-api/scripts/hfx_filename: note: In function "rpc":
Python Code Review: scripts/perfmon#L1
[mypy] reported by reviewdog 🐶 In member "__init__" of class "RRDUpdates": Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon: note: In member "__init__" of class "RRDUpdates":
Python Code Review: scripts/perfmon#L1
[mypy] reported by reviewdog 🐶 In function "get_percent_mem_usage": Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon: note: In function "get_percent_mem_usage":
Python Code Review: scripts/perfmon#L390
[mypy] reported by reviewdog 🐶 Possible overload variants: Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:390:22: note: Possible overload variants:
Python Code Review: scripts/perfmon#L390
[mypy] reported by reviewdog 🐶 def __getitem__(self, SupportsIndex, /) -> List[str] Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:390:22: note: def __getitem__(self, SupportsIndex, /) -> List[str]
Python Code Review: scripts/perfmon#L390
[mypy] reported by reviewdog 🐶 def __getitem__(self, slice, /) -> List[List[str]] Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:390:22: note: def __getitem__(self, slice, /) -> List[List[str]]
Python Code Review: scripts/perfmon#L391
[mypy] reported by reviewdog 🐶 Possible overload variants: Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:391:23: note: Possible overload variants:
Python Code Review: scripts/perfmon#L391
[mypy] reported by reviewdog 🐶 def __getitem__(self, SupportsIndex, /) -> List[str] Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:391:23: note: def __getitem__(self, SupportsIndex, /) -> List[str]
Python Code Review: scripts/perfmon#L391
[mypy] reported by reviewdog 🐶 def __getitem__(self, slice, /) -> List[List[str]] Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:391:23: note: def __getitem__(self, slice, /) -> List[List[str]]
Python Code Review: scripts/perfmon#L392
[mypy] reported by reviewdog 🐶 Possible overload variants: Raw Output: /home/runner/work/xen-api/xen-api/scripts/perfmon:392:50: note: Possible overload variants: