Galactic and picographics .py or .pyi

New to python I’m getting this error in visual studio code Import "picographics" could not be resolved. I’m using Pico-W-Go extension.

My project works when deployed to my galactic unicorn, I understand these are provided in the micropython release flashed to my pico w, but would love to get intellisense from galactic.py and picographics.py. Where can I find these py or pyi files to include in my project?

That might be tough. Most of that stuff, as far as I know, is C wrapped in Micro Python.
I “think” this where it is.
pimoroni-pico/micropython at main · pimoroni/pimoroni-pico (github.com)

1 Like

Thanks for your reply.

I found this helpful repo where the creator hand made stubs for these two files

1 Like

Wow, it doesn’t get much better than that. I hope that works for you.

There’s also GitHub - pimoroni/pimoroni-pico-stubs 👀

2 Likes

Well, I guess it does get better than that. =)
You just need to know where to look.