Skip to content

Commit

Permalink
Fix e0c4db0 for pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
pukkandan committed Jul 22, 2023
1 parent e705738 commit 25b6e8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions yt_dlp/compat/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 25b6e8f

Please sign in to comment.