Removed type ambiguity in one overload of YoutubeDL

I don't believe there is a difference in functionality with using a set type as a default argument value. But keeping the argument type ambiguous with None isn't necessary.
archive/recovered-github-prs
VoxLight 4 years ago committed by GitHub
parent d65d89183f
commit 6f08808191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -340,10 +340,8 @@ class YoutubeDL(object):
_num_downloads = None
_screen_file = None
def __init__(self, params=None, auto_init=True):
def __init__(self, params={}, auto_init=True):
"""Create a FileDownloader object with the given options."""
if params is None:
params = {}
self._ies = []
self._ies_instances = {}
self._pps = []

Loading…
Cancel
Save