From 21970f11eb72c20a6d3b76532928af2845f878c9 Mon Sep 17 00:00:00 2001 From: Andrew Udvare Date: Sat, 2 Nov 2024 17:47:07 -0400 Subject: [PATCH] utils: fix try_get --- yt_dlp-stubs/utils/_utils.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp-stubs/utils/_utils.pyi b/yt_dlp-stubs/utils/_utils.pyi index 3fe803a..4699ad1 100644 --- a/yt_dlp-stubs/utils/_utils.pyi +++ b/yt_dlp-stubs/utils/_utils.pyi @@ -10,7 +10,7 @@ _T = TypeVar('_T') _U = TypeVar('_U') -def try_get(x: _T, getter: Callable[[_T], _U], type_: type[_U]) -> _U: +def try_get(x: _T, getter: Callable[[_T], _U], type_: type[_U] = ...) -> _U | None: ...