You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a NewType that is an integer and performing an unary operation will incorrectly show the invalid-unary-operand-type error.
Trying to use it to index an array will report invalid-sequence-index.
Trying to call a method of int on an int NewType will report no-member.
I haven't tested it, but the same would probably apply at floats.
************* Module skytemple_files.graphics.kao._writer
skytemple_files/graphics/kao/_writer.py:77:43: E1130: bad operand typefor unary -: i32 (invalid-unary-operand-type)
skytemple_files/graphics/kao/_writer.py:90:31: E1130: bad operand typefor unary -: i32 (invalid-unary-operand-type)
************* Module skytemple_files.patch.handler.expand_poke_list
skytemple_files/patch/handler/expand_poke_list.py:232:16: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index)
skytemple_files/patch/handler/expand_poke_list.py:239:16: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index)
skytemple_files/patch/handler/expand_poke_list.py:246:16: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index)
skytemple_files/patch/handler/expand_poke_list.py:247:16: E1126: Sequence index is not an int, slice, or instance with __index__ (invalid-sequence-index)
************* Module skytemple_files.compression_container._prviate.bma_collision_rle._pymodel
skytemple_files/compression_container/_prviate/bma_collision_rle/_pymodel.py:40:17: E1101: Instance of 'u16' has no 'to_bytes' member (no-member)
Duplicate of #2296 and #3162. Please reopen if you are able to determine that pylint-dev/astroid#1301 will not resolve your issues. We appreciate everyone who helps test pylint/astroid dev!
Bug description
Using a NewType that is an integer and performing an unary operation will incorrectly show the
invalid-unary-operand-type
error.Trying to use it to index an array will report
invalid-sequence-index
.Trying to call a method of
int
on anint
NewType will reportno-member
.I haven't tested it, but the same would probably apply at floats.
In the example below,
i32
is defined as:Configuration
No response
Command used
Pylint output
Expected behavior
I would expect no error to be reported.
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: