Skip to content

crt: fix strict Pyright type checking errors#56

Open
UweSchwaeke wants to merge 2 commits intoclyso:mainfrom
UweSchwaeke:55-fix-pyright-strictness-errors-reportunusedcallresult-and-reportany-in-manifestpy-and-git_utilspy
Open

crt: fix strict Pyright type checking errors#56
UweSchwaeke wants to merge 2 commits intoclyso:mainfrom
UweSchwaeke:55-fix-pyright-strictness-errors-reportunusedcallresult-and-reportany-in-manifestpy-and-git_utilspy

Conversation

@UweSchwaeke
Copy link
Collaborator

  • what Assigned unused return values from git_prepare_remote and git_push to the discard variable _ in manifest.py. Added a typing.cast to Callable[..., str] for repo.git.ls_remote in git_utils.py.

  • why To resolve reportUnusedCallResult and reportAny errors flagged by stricter Pyright configurations. This explicitly acknowledges intentionally ignored return values and prevents untyped Any values from leaking out of the GitPython library, keeping the codebase strictly typed.

see Ticket #55

UweSchwaeke and others added 2 commits March 18, 2026 16:29
* what
  Assigned unused return values from `git_prepare_remote` and `git_push`
  to the discard variable `_` in `manifest.py`. Added a `typing.cast` to
  `Callable[..., str]` for `repo.git.ls_remote` in `git_utils.py`.

* why
  To resolve `reportUnusedCallResult` and `reportAny` errors flagged by
  stricter Pyright configurations. This explicitly acknowledges
  intentionally ignored return values and prevents untyped `Any` values
  from leaking out of the GitPython library, keeping the codebase
  strictly typed.

Co-authored-by: Gemini <gemini@google.com>
Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
To resolve `reportUnusedCallResult` errors flagged by stricter Pyright
configurations. This explicitly acknowledges intentionally ignored
return values.

Signed-off-by: Uwe Schwaeke <uwe.schwaeke@clyso.com>
@UweSchwaeke UweSchwaeke force-pushed the 55-fix-pyright-strictness-errors-reportunusedcallresult-and-reportany-in-manifestpy-and-git_utilspy branch from fca0715 to daea3cf Compare March 18, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Pyright strictness errors (reportUnusedCallResult and reportAny) in manifest.py and git_utils.py

1 participant