]> jfr.im git - yt-dlp.git/commitdiff
[compat] Add `types.NoneType`
authorpukkandan <redacted>
Sat, 22 Jul 2023 03:26:45 +0000 (08:56 +0530)
committerpukkandan <redacted>
Sat, 22 Jul 2023 03:30:45 +0000 (09:00 +0530)
yt_dlp/compat/types.py [new file with mode: 0644]

diff --git a/yt_dlp/compat/types.py b/yt_dlp/compat/types.py
new file mode 100644 (file)
index 0000000..ae70245
--- /dev/null
@@ -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)