mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-01 19:17:50 +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
|
_num_downloads = None
|
||||||
_screen_file = 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."""
|
"""Create a FileDownloader object with the given options."""
|
||||||
if params is None:
|
|
||||||
params = {}
|
|
||||||
self._ies = []
|
self._ies = []
|
||||||
self._ies_instances = {}
|
self._ies_instances = {}
|
||||||
self._pps = []
|
self._pps = []
|
||||||
|
Loading…
Reference in New Issue
Block a user