diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-07-22 08:56:45 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-07-22 09:00:45 +0530 |
commit | e0c4db04dc82a699bdabd9821ddc239ebe17d30a (patch) | |
tree | a10f926c1155b134dfeaff5a187d052b60256b8b | |
parent | 81b4712bca608b9015aa68a4d96661d56e9cb894 (diff) | |
download | hypervideo-pre-e0c4db04dc82a699bdabd9821ddc239ebe17d30a.tar.lz hypervideo-pre-e0c4db04dc82a699bdabd9821ddc239ebe17d30a.tar.xz hypervideo-pre-e0c4db04dc82a699bdabd9821ddc239ebe17d30a.zip |
[compat] Add `types.NoneType`
-rw-r--r-- | yt_dlp/compat/types.py | 12 |
1 files changed, 12 insertions, 0 deletions
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) |