Does anyone know where this error comes from? The app still seems to run fine, but getting these underlines is very annoying. For some reason, vscode is not always able to read the members.
My guess is you named your script
streamlit.py, and when you do
import streamlit as st, vscode thinks you imported your script instead of the real streamlit module. Try renaming your script and tell me if you still get these errors.
Thank you, that is exactly what it was. Not sure where I got the habit from, but I think I read tutorials that used the streamlit as the script name.