Skip to content

A feature-rich command-line audio/video downloader

[compat] Add `types.NoneType`

pukkandane0c4db04dc82
diff --git a/yt_dlp/compat/types.py b/yt_dlp/compat/types.py
new file mode 100644
index 0000000000..ae70245642
--- /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)