Skip to content

Commit

Permalink
move pylint directives
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Dec 21, 2024
1 parent d3a3e1b commit 67117e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions adafruit_ov2640.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,9 +991,9 @@ def __init__(self, i2c_bus: I2C, i2c_address: int) -> None:
def _get_reg_bits(self, bank: int, reg: int, shift: int, mask: int) -> int:
return (self._read_bank_register(bank, reg) >> shift) & mask

def _set_reg_bits(
def _set_reg_bits( # pylint: disable=too-many-arguments
self, bank: int, reg: int, shift: int, mask: int, value: int
) -> None: # pylint: disable=too-many-arguments
) -> None:
reg_value = self._read_bank_register(bank, reg)
reg_value &= ~(mask << shift)
reg_value |= value << shift
Expand Down Expand Up @@ -1268,7 +1268,7 @@ def product_version(self) -> int:
"""Get the version (VER) register. The expected value is 0x41."""
return self._read_bank_register(_BANK_SENSOR, _REG_VER)

def _set_window(
def _set_window( # pylint: disable=too-many-arguments, too-many-locals
self,
mode: int,
offset_x: int,
Expand All @@ -1277,7 +1277,7 @@ def _set_window(
max_y: int,
width: int,
height: int,
) -> None: # pylint: disable=too-many-arguments, too-many-locals
) -> None:
self._w = width
self._h = height

Expand Down

0 comments on commit 67117e8

Please sign in to comment.