-
Notifications
You must be signed in to change notification settings - Fork 32
python TypeError #3
Copy link
Copy link
Open
Description
Traceback (most recent call last):
File "/Users/leekiyoung/.local/bin/perplexity", line 56, in <module>
class ApiConfig:
File "/Users/leekiyoung/.local/bin/perplexity", line 58, in ApiConfig
api_key: str | None = None
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
This occurs when using the new type hint (union type) syntax like str | None in Python 3.10 or earlier.
This syntax (str | None) is only supported in Python 3.10 or later.
It is python3.6+ as written in readme.md.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels