TypeError: 'type' object is not subscriptable when sharing streamlit app

Hi!

I get TypeError: ‘type’ object is not subscriptable when doplying an streamlit app for sharing.
The app runs fine, when i run it locally.

The type error appears for multiple codelines, among others init-function that has a default value that look like this.
lookup_block: pd.DataFrame = None,

Any idea why this error can come up when I share, for code that works fine when run locally?

Thanks
Niklas

I used python 3.9 locally, that caused the TypeError: ‘type’ object is not subscriptable problems. I can reproduce the problem when I run 3.7 locally. From the documentation I get that streamlit sharing runs un python 3.7.