]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/compat/types.py
[ie/podbayfm] Fix extraction (#10195)
[yt-dlp.git] / yt_dlp / compat / types.py
index ae7024564226fc2fad5d9ece86ab4e995e63dd28..4aa3b0efdd38cd486bfcef254839e7dd9d65405c 100644 (file)
@@ -7,6 +7,7 @@
 del passthrough_module
 
 try:
-    NoneType  # >= 3.10
-except NameError:
+    # NB: pypy has builtin NoneType, so checking NameError won't work
+    from types import NoneType  # >= 3.10
+except ImportError:
     NoneType = type(None)