ThoughtfulDev / EagleEye

Stalk your Friends. Find their Instagram, FB and Twitter Profiles using Image Recognition and Reverse Image Search.
Do What The F*ck You Want To Public License
4.14k stars 561 forks source link

Do not use mutable data structures for argument defaults #124

Closed cclauss closed 1 year ago

cclauss commented 2 years ago

https://docs.python-guide.org/writing/gotchas/

$ python3 -m pip install flake8 flake8-bugbear $ flake8

./EagleEye/eagle-eye.py:64:31: B006 Do not use mutable data structures for argument defaults.  They are created
during function definition time. All calls to the function reuse this one instance of that data structure,
persisting changes between them.
def main(skipFB=False, FBUrls=[], jsonRep=None, dockerMode=False, dockerName=None):
                              ^