Feb-10-2018, 08:29 AM
Set default values. You do not need two functions.
def func(text='', obj=None): if text: # process elif: obj: # process
redefinition of unused function
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Uninstall unused COM ports windows 10 | adbrooker | 1 | 2,127 |
Sep-22-2021, 03:16 AM Last Post: Larz60+ |
|
redefinition of a method in a class: pylint warning | kboo | 1 | 4,365 |
Feb-13-2018, 11:21 AM Last Post: buran |