Fix some language in messages, comments, and docstrings #12
Annotations
10 errors and 1 warning
Run jakebailey/pyright-action@v2:
patroni/ha.py#L569
Argument of type "Any | list[str] | str | None" cannot be assigned to parameter "replica_methods" of type "List[str] | None" in function "can_create_replica_without_replication_connection"
Type "Any | list[str] | str | None" is not assignable to type "List[str] | None"
Type "str" is not assignable to type "List[str] | None"
"str" is not assignable to "List[str]"
"str" is not assignable to "None" (reportArgumentType)
|
Run jakebailey/pyright-action@v2:
patroni/ha.py#L1604
Argument missing for parameter "prev_location" (reportCallIssue)
|
Run jakebailey/pyright-action@v2:
patroni/log.py#L398
"RESERVED_ATTRS" is not exported from module "pythonjsonlogger.jsonlogger" (reportPrivateImportUsage)
|
Run jakebailey/pyright-action@v2:
patroni/log.py#L400
"RESERVED_ATTRS" is not exported from module "pythonjsonlogger.jsonlogger" (reportPrivateImportUsage)
|
Run jakebailey/pyright-action@v2:
patroni/log.py#L402
"JsonFormatter" is not exported from module "pythonjsonlogger.jsonlogger" (reportPrivateImportUsage)
|
Run jakebailey/pyright-action@v2:
patroni/multisite.py#L331
Type of "site_switches" is partially unknown
Type of "site_switches" is "Unknown | None" (reportUnknownMemberType)
|
Run jakebailey/pyright-action@v2:
patroni/multisite.py#L331
Type of "get" is partially unknown
Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
|
Run jakebailey/pyright-action@v2:
patroni/multisite.py#L336
Type of "get" is partially unknown
Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
|
Run jakebailey/pyright-action@v2:
patroni/multisite.py#L337
Type of "new_state" is partially unknown
Type of "new_state" is "list[dict[str, str | Unknown]]" (reportUnknownVariableType)
|
Run jakebailey/pyright-action@v2:
patroni/multisite.py#L337
Type of "get" is partially unknown
Type of "get" is "Overload[(key: Unknown, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]" (reportUnknownMemberType)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading