The BITFIELD command is pretty complicated, involving subcommands and different arguments for each, all of which are able to be specified multiple times.
For reference, here's the command:
BITFIELD key [GET type offset] [SET type offset value] [INCRBY type offset increment] [OVERFLOW WRAP|SAT|FAIL]
Preferably, there would be a way to make the function call signature look at least somewhat like that. I suspect, though, that bitfield(self, *args: str) is the best it's going to get.
The BITFIELD command is pretty complicated, involving subcommands and different arguments for each, all of which are able to be specified multiple times.
For reference, here's the command:
BITFIELD key [GET type offset] [SET type offset value] [INCRBY type offset increment] [OVERFLOW WRAP|SAT|FAIL]
Preferably, there would be a way to make the function call signature look at least somewhat like that. I suspect, though, that
bitfield(self, *args: str)
is the best it's going to get.