From e0c4db04dc82a699bdabd9821ddc239ebe17d30a Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sat, 22 Jul 2023 08:56:45 +0530 Subject: [PATCH] [compat] Add `types.NoneType` --- yt_dlp/compat/types.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 yt_dlp/compat/types.py diff --git a/yt_dlp/compat/types.py b/yt_dlp/compat/types.py new file mode 100644 index 000000000..ae7024564 --- /dev/null +++ b/yt_dlp/compat/types.py @@ -0,0 +1,12 @@ +# flake8: noqa: F405 +from types import * # noqa: F403 + +from .compat_utils import passthrough_module + +passthrough_module(__name__, 'types') +del passthrough_module + +try: + NoneType # >= 3.10 +except NameError: + NoneType = type(None)