nathanrchn / perplexityai

A python api to use perplexity.ai
233 stars 60 forks source link

Update type hint in perplexity/utils.py #18

Closed feidfoe closed 1 year ago

feidfoe commented 1 year ago

When I import perplexityai with the original utils.py, I got

TypeError: 'builtin_function_or_method' object is not subscriptable

in utils.py, line 1. So, instead of using build-in types, I suggest you to use typing library.