sigma67 / ytmusicapi

Unofficial API for YouTube Music
https://ytmusicapi.readthedocs.io
MIT License
1.59k stars 184 forks source link

TypeError: unsupported operand type(s) for |: 'type' and '_SpecialGenericAlias' #504

Closed xnetcat closed 6 months ago

xnetcat commented 6 months ago

**Describe the bug**
  File "C:\Users\jackl\AppData\Local\Programs\Python\Python39\lib\site-packages\ytmusicapi\ytmusic.py", line 44, in YTMusicBase
    auth: Optional[str | Dict] = None,
TypeError: unsupported operand type(s) for |: 'type' and '_SpecialGenericAlias'

**To Reproduce**
Steps to reproduce the behavior:
Run example code with python 3.8/3.9

**Additional context**
Pipe as or is not supported in python <3.10