I had a very similar issue occurring across multiple different scripts and various standard packages (pandas, selenium, etc.). Although these Pylance warnings did not disrupt my code, those squiggly yellow lines were annoying - especially knowing that I had likely set up nearly everything correctly.
To resolve these warnings, I just 'Trusted' the window. I believe the original notification popped up in the bottom left of the VS Code UI, but it should be searchable in settings as well.
Here is a picture of the Trusting window that I was seeing. Good luck!