Skip to content

Add missing type hints #86

Add missing type hints

Add missing type hints #86

Triggered via pull request May 16, 2025 09:48
@avandrasavandras
synchronize #8
add-type-hints
Status Failure
Total duration 19m 42s
Artifacts 1

tests.yaml

on: pull_request
Matrix: behave
Matrix: unit
pyright
30s
pyright
Test compatibility with the latest version of ydiff
19s
Test compatibility with the latest version of ydiff
docs
3m 52s
docs
isort
19s
isort
Finalize Codacy
0s
Finalize Codacy
Finalize coveralls.io
5s
Finalize coveralls.io
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 1 warning
pyright: patroni/__main__.py#L82
Argument of type "Config" cannot be assigned to parameter "config" of type "Dict[str, Any]" in function "__init__"   "Config" is not assignable to "Dict[str, Any]" (reportArgumentType)
pyright: patroni/__main__.py#L82
Argument of type "() -> None" cannot be assigned to parameter "on_change" of type "None" in function "__init__"   "function" is not assignable to "None" (reportArgumentType)
pyright: patroni/api.py#L684
Type of "site_switches" is partially unknown   Type of "site_switches" is "Unknown | None" (reportUnknownMemberType)
pyright: patroni/api.py#L684
Argument type is partially unknown   Argument corresponds to parameter "args" in function "format"   Argument type is "Unknown | None" (reportUnknownArgumentType)
pyright: patroni/api.py#L684
Cannot access attribute "site_switches" for class "SingleSiteController"   Attribute "site_switches" is unknown (reportAttributeAccessIssue)
pyright: patroni/api.py#L1215
Type of "dcs" is partially unknown   Type of "dcs" is "AbstractDCS | Unknown" (reportUnknownMemberType)
pyright: patroni/api.py#L1215
Type of "manual_failover" is partially unknown   Type of "manual_failover" is "((leader: str | None, candidate: str | None, scheduled_at: datetime | None = None, target_site: str | None = None, version: Any | None = None) -> bool) | Unknown" (reportUnknownMemberType)
pyright: patroni/api.py#L1215
Cannot access attribute "dcs" for class "SingleSiteController"   Attribute "dcs" is unknown (reportAttributeAccessIssue)
pyright: patroni/ha.py#L1631
Argument of type "int | None" cannot be assigned to parameter "checkpoint_location" of type "int" in function "on_shutdown"   Type "int | None" is not assignable to type "int"     "None" is not assignable to "int" (reportArgumentType)
pyright: patroni/multisite.py#L327
Type of "site_switches" is partially unknown   Type of "site_switches" is "Unknown | None" (reportUnknownMemberType)
docs
Process completed with exit code 255.
unit (macos)
[notice] A new release of pip is available: 21.1.1 -> 25.0.1 [notice] To update, run: python3.8 -m pip install --upgrade pip
behave (ubuntu, 3.13, etcd)
Process completed with exit code 1.
behave (macos, 3.8, raft)
[notice] A new release of pip is available: 21.1.1 -> 25.0.1 [notice] To update, run: python3.8 -m pip install --upgrade pip
Finalize coveralls.io
The `python-version` input is not set. The version of Python currently in `PATH` will be used.

Artifacts

Produced during runtime
Name Size Digest
behave-ubuntu-etcd-3.13-logs Expired
27.2 KB
sha256:2e7aaca6b1a4a7a64498a1be868ec209b32d9e10c4fbda906110ac4d858af1bc