File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 - id : end-of-file-fixer
1919 - id : trailing-whitespace
2020 - repo : https://github.com/pycqa/pylint
21- rev : v2.17.4
21+ rev : v3.3.1
2222 hooks :
2323 - id : pylint
2424 name : pylint (library code)
Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ valid-metaclass-classmethod-first-arg=mcs
361361[DESIGN]
362362
363363# Maximum number of arguments for function / method
364- max-args =5
364+ max-args =18
365365
366366# Maximum number of attributes for a class (see R0902).
367367# max-attributes=7
Original file line number Diff line number Diff line change @@ -78,7 +78,9 @@ def __init__(
7878 @property
7979 def label (self ):
8080 """The text label of the button"""
81- return self ._label .text
81+ if self ._label is not None and hasattr (self ._label , "text" ):
82+ return self ._label .text
83+ return None
8284
8385 @label .setter
8486 def label (self , newtext ):
You can’t perform that action at this time.
0 commit comments