From: pukkandan Date: Sat, 22 Jul 2023 04:47:36 +0000 (+0530) Subject: Fix e0c4db04dc82a699bdabd9821ddc239ebe17d30a for pypy X-Git-Tag: 2023.09.24~128 X-Git-Url: https://jfr.im/git/yt-dlp.git/commitdiff_plain/25b6e8f94679b4458550702b46e61249b875a4fd Fix e0c4db04dc82a699bdabd9821ddc239ebe17d30a for pypy --- diff --git a/yt_dlp/compat/types.py b/yt_dlp/compat/types.py index ae7024564..4aa3b0efd 100644 --- a/yt_dlp/compat/types.py +++ b/yt_dlp/compat/types.py @@ -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)