S0017: bytes expects one argument
Generated from rellum-diagnostics/src/db.rs.
Explanation
The bytes built-in converts exactly one [Int] value into Bytes. It does not accept separate integer arguments or multiple arrays.
Common causes
- calling bytes with no arguments
- passing multiple Int values instead of one array
- passing an extra fallback or length argument
Canonical fixes
- pass one [Int] value
Before:
data = bytes(65, 66)
After:
data = bytes([65, 66])
- remove extra arguments
Before:
data = bytes(values, len(values))
After:
data = bytes(values)
Code example
data = bytes(65, 66)