Refactored Parse Function #93
Annotations
10 errors and 10 warnings
|
Run Basedpyright:
src/parsley/parse_to_object.py#L12
Import "crc8" could not be resolved (reportMissingImports)
|
|
Run Basedpyright:
src/parsley/fields.py#L208
Expected type arguments for generic class "dict" (reportMissingTypeArgument)
|
|
Run Basedpyright:
src/parsley/fields.py#L189
Expected type arguments for generic class "dict" (reportMissingTypeArgument)
|
|
Run Basedpyright:
src/parsley/fields.py#L189
Expected type arguments for generic class "dict" (reportMissingTypeArgument)
|
|
Run Basedpyright:
src/parsley/fields.py#L72
Expected type arguments for generic class "dict" (reportMissingTypeArgument)
|
|
Run Basedpyright:
src/parsley/bitstring.py#L48
Operator "<<" not supported for types "bytes" and "int" (reportOperatorIssue)
|
|
Run Basedpyright:
src/parsley/bitstring.py#L47
Type "int" is not assignable to declared type "bytes"
"int" is not assignable to "bytes" (reportAssignmentType)
|
|
Run Basedpyright:
src/parsley/bitstring.py#L41
Operator "|" not supported for types "int | Unknown" and "Unknown | bytes"
Operator "|" not supported for types "int" and "bytes" (reportOperatorIssue)
|
|
Run Basedpyright:
src/parsley/bitstring.py#L40
Operator "&" not supported for types "bytes" and "int" (reportOperatorIssue)
|
|
Run Basedpyright:
src/parsley/bitstring.py#L39
Type "int" is not assignable to declared type "bytes"
"int" is not assignable to "bytes" (reportAssignmentType)
|
|
Run Basedpyright:
src/parsley/bitstring.py#L26
Type of "res" is partially unknown
Type of "res" is "int | Unknown" (reportUnknownVariableType)
|
|
Run Basedpyright:
src/parsley/bitstring.py#L10
Type annotation for attribute `data` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
|
|
Run Basedpyright:
src/parsley/bitstring.py#L8
Type annotation for attribute `length` is required because this class is not decorated with `@final` (reportUnannotatedClassAttribute)
|
|
Run Basedpyright:
src/parsley/bitstring.py#L7
Type annotation is missing for parameter "data_bit_length" (reportMissingParameterType)
|
|
Run Basedpyright:
src/parsley/bitstring.py#L7
Type annotation is missing for parameter "data" (reportMissingParameterType)
|
|
Run Basedpyright:
src/parsley/__init__.py#L21
Type of "calculate_msg_bit_len" is partially unknown
Type of "calculate_msg_bit_len" is "(can_message: Unknown) -> (Unknown | Literal[0])" (reportUnknownVariableType)
|
|
Run Basedpyright:
src/parsley/__init__.py#L20
Type of "encode_data" is partially unknown
Type of "encode_data" is "(parsed_data: dict[Unknown, Unknown]) -> tuple[int, list[int]]" (reportUnknownVariableType)
|
|
Run Basedpyright:
src/parsley/__init__.py#L19
Type of "format_line" is partially unknown
Type of "format_line" is "(parsed_data: dict[Unknown, Unknown]) -> str" (reportUnknownVariableType)
|
|
Run Basedpyright:
src/parsley/__init__.py#L14
Type of "parse_board_type_id" is partially unknown
Type of "parse_board_type_id" is "(encoded_board_type_id: bytes) -> dict[Unknown, Unknown]" (reportUnknownVariableType)
|
|
Run Basedpyright:
src/parsley/__init__.py#L14
Type of "parse" is partially unknown
Type of "parse" is "(msg_sid: bytes, msg_data: bytes) -> dict[Unknown, Unknown]" (reportUnknownVariableType)
|