alchemyplatform / alchemy-sdk-py

30 stars 9 forks source link

Importing "Literal" from "typing" meant for python>=3.8 #2

Open c-whaleum opened 1 year ago

c-whaleum commented 1 year ago

We'll need to address a minor issue with importing the Literal class from typing for python 3.7.

ImportError: cannot import name 'Literal' from 'typing' Python docs

We can either require python>=3.8 in the setup script or import from typing_extensions instead. I'm happy to open a PR.

EricRanasinghe commented 1 year ago

Python 3.7 is supported until 2023-06-27, so I think we can require python>=3.8.