mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-21 02:52:57 +08:00
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.
This commit is contained in:
parent
d65d89183f
commit
6f08808191
@ -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…
Reference in New Issue
Block a user