Updating pylint enable/disables

This commit is contained in:
Liz 2023-04-03 09:47:50 -04:00
parent e5dc15fd01
commit cad32475b6

View file

@ -250,7 +250,6 @@ class Board:
except FileNotFoundError: except FileNotFoundError:
return None return None
# pylint: disable=useless-option-value
def _beaglebone_id(self) -> Optional[str]: def _beaglebone_id(self) -> Optional[str]:
"""Try to detect id of a Beaglebone.""" """Try to detect id of a Beaglebone."""
board_value = self.detector.get_device_compatible() board_value = self.detector.get_device_compatible()
@ -289,8 +288,6 @@ class Board:
board_value = self.detector.get_armbian_release_field("BOARD") board_value = self.detector.get_armbian_release_field("BOARD")
return None return None
# pylint: enable=useless-option-value
def _bbai_id(self) -> Optional[str]: def _bbai_id(self) -> Optional[str]:
"""Try to detect id of a Beaglebone AI related board.""" """Try to detect id of a Beaglebone AI related board."""
board_value = self.detector.get_device_model() board_value = self.detector.get_device_model()
@ -477,7 +474,6 @@ class Board:
board = boards.SOPINE board = boards.SOPINE
return board return board
# pylint: disable=useless-option-value
def _pynq_id(self) -> Optional[str]: def _pynq_id(self) -> Optional[str]:
"""Try to detect the id for Xilinx PYNQ boards.""" """Try to detect the id for Xilinx PYNQ boards."""
try: try: