You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My understanding is that unless one really wants to keep track of multiple function invocations in a global variable that is effectively hidden from global view, one should just follow the advice in the quantifiedcode link and use def(value=None) and value = value if value is not None else [] (or similar).
Example in:
https://github.com/jensengroup/propka-3.1/blob/dde0d67ea5d7b0e8b24a3050ae4d6cbc4ca07972/propka/molecular_container.py#L198
Pylint finds several other examples
The text was updated successfully, but these errors were encountered: