[pre-commit.ci] pre-commit autoupdate #947
Annotations
10 errors and 10 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/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:
steam/abc.py#L546
Variable not allowed in type expression (reportInvalidTypeForm)
|
build:
steam/client.py#L493
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
build:
steam/client.py#L767
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
build:
steam/enums.py#L124
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/gateway.py#L692
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
build:
steam/gateway.py#L693
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
build:
steam/gateway.py#L694
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
build:
steam/gateway.py#L696
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
build:
steam/gateway.py#L697
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|