Skip to content

Commit

Permalink
utils: fix try_get
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsh committed Nov 2, 2024
1 parent e5fd655 commit 21970f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp-stubs/utils/_utils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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:
...


Expand Down

0 comments on commit 21970f1

Please sign in to comment.