Rellum Rellum

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

Canonical fixes

Before:

data = bytes(65, 66)

After:

data = bytes([65, 66])

Before:

data = bytes(values, len(values))

After:

data = bytes(values)

Code example

data = bytes(65, 66)