diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 70ade69..374676d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/pycqa/pylint - rev: v2.17.4 + rev: v3.3.1 hooks: - id: pylint name: pylint (library code) diff --git a/.pylintrc b/.pylintrc index f945e92..fe3f21d 100644 --- a/.pylintrc +++ b/.pylintrc @@ -361,7 +361,7 @@ valid-metaclass-classmethod-first-arg=mcs [DESIGN] # Maximum number of arguments for function / method -max-args=5 +max-args=18 # Maximum number of attributes for a class (see R0902). # max-attributes=7 diff --git a/adafruit_button/button_base.py b/adafruit_button/button_base.py index bcebc7e..8a7709c 100644 --- a/adafruit_button/button_base.py +++ b/adafruit_button/button_base.py @@ -78,7 +78,7 @@ def __init__( @property def label(self): """The text label of the button""" - return self._label.text + return getattr(self._label, "text", None) @label.setter def label(self, newtext):
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: