mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-22 18:17:17 -05:00
[compat] Add types.NoneType
This commit is contained in:
parent
81b4712bca
commit
e0c4db04dc
12
yt_dlp/compat/types.py
Normal file
12
yt_dlp/compat/types.py
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user