From 6f0880819147b5378c2176d7f408319300181cd0 Mon Sep 17 00:00:00 2001 From: VoxLight Date: Sat, 3 Oct 2020 17:37:11 -0400 Subject: [PATCH] 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. --- youtube_dl/YoutubeDL.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 19370f62b..053c85324 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -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 = []