[pre-commit.ci] auto fixes from pre-commit.com hooks #989
Annotations
10 errors and 11 warnings
build:
examples/csgo/casket.py#L13
Type of "inventory" is partially unknown
Type of "inventory" is "Overload[(app: Unknown, *, language: object = ...) -> Coroutine[Any, Any, Backpack], (app: App[str | None], *, language: Language | None = None) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]]" (reportUnknownMemberType)
|
build:
examples/tf2/autocraft.py#L16
Type of "inventory" is partially unknown
Type of "inventory" is "Overload[(app: Unknown, *, language: object = ...) -> Coroutine[Any, Any, Backpack], (app: App[str | None], *, language: Language | None = None) -> Coroutine[Any, Any, Inventory[Item[ClientUser], ClientUser]]]" (reportUnknownMemberType)
|
build:
scripts/blacken_docs_correctly.py#L42
Argument missing for parameter "check_only" (reportCallIssue)
|
build:
scripts/decode.py#L66
Argument of type "(self: ConnectionState, msg: CMsgMulti) -> None" cannot be assigned to parameter "value" of type "ParserCallback[ConnectionState, ProtoMsgs]" in function "__setitem__"
Type "(self: ConnectionState, msg: CMsgMulti) -> None" is not assignable to type "(self: ConnectionState, msg: ProtoMsgs, /, *args: Any) -> (CoroutineType[Any, Any, Any] | Any)"
Parameter 2: type "ProtoMsgs" is incompatible with type "CMsgMulti"
Type "ProtoMsgs" is not assignable to type "CMsgMulti"
"Message" is not assignable to "CMsgMulti"
Parameter "*args" has no corresponding parameter (reportArgumentType)
|
build:
scripts/decode.py#L68
Argument of type "(self: ConnectionState, msg: UnifiedMessage) -> None" cannot be assigned to parameter "value" of type "ParserCallback[ConnectionState, ProtoMsgs]" in function "__setitem__"
Type "(self: ConnectionState, msg: UnifiedMessage) -> None" is not assignable to type "(self: ConnectionState, msg: ProtoMsgs, /, *args: Any) -> (CoroutineType[Any, Any, Any] | Any)"
Parameter 2: type "ProtoMsgs" is incompatible with type "UnifiedMessage"
Type "ProtoMsgs" is not assignable to type "UnifiedMessage"
"Message" is not assignable to "UnifiedMessage"
Parameter "*args" has no corresponding parameter (reportArgumentType)
|
build:
scripts/decode.py#L70
Argument of type "(self: ConnectionState, msg: UnifiedMessage) -> None" cannot be assigned to parameter "value" of type "ParserCallback[ConnectionState, ProtoMsgs]" in function "__setitem__"
Type "(self: ConnectionState, msg: UnifiedMessage) -> None" is not assignable to type "(self: ConnectionState, msg: ProtoMsgs, /, *args: Any) -> (CoroutineType[Any, Any, Any] | Any)"
Parameter 2: type "ProtoMsgs" is incompatible with type "UnifiedMessage"
Type "ProtoMsgs" is not assignable to type "UnifiedMessage"
"Message" is not assignable to "UnifiedMessage"
Parameter "*args" has no corresponding parameter (reportArgumentType)
|
build:
scripts/decode.py#L71
Argument of type "bytearray" cannot be assigned to parameter "message" of type "bytes" in function "receive"
"bytearray" is not assignable to "bytes"
Set disableBytesTypePromotions to false to enable type promotion behavior for "bytearray" and "memoryview" (reportArgumentType)
|
build:
steam/abc.py#L220
Operator "<" not supported for "None" (reportOptionalOperand)
|
build:
steam/abc.py#L220
Operator "<" not supported for types "datetime" and "datetime | None"
Operator "<" not supported for types "datetime" and "None" (reportOperatorIssue)
|
build:
steam/abc.py#L546
Return type, "FavouriteBadge[PartialApp[str | None] | Unknown, PartialUser] | None", is partially unknown (reportUnknownParameterType)
|
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build:
steam/client.py#L722
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
build:
steam/enums.py#L247
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
build:
steam/errors.py#L93
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
build:
steam/http.py#L179
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
build:
steam/manifest.py#L688
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
build:
steam/manifest.py#L690
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
build:
steam/state.py#L2172
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
build:
steam/state.py#L2694
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
build:
steam/ext/commands/cog.py#L34
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
build:
steam/ext/commands/cog.py#L47
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|