vpython / vpython-jupyter

3D visualization made easy
MIT License
141 stars 64 forks source link

Is there a desire for a MyPy VPython stub for static type checking compliance? #277

Open jim-tooker opened 2 months ago

jim-tooker commented 2 months ago

I use MyPy to type check my projects and noticed VPython doesn't having Typing or a library stub for static type checking so MyPy complains it can't find a library stub with the infamous module is installed, but missing library stubs or py.typed marker message.

I wrote a vpython-stubs for my needs. It's complete for the vector module, but I only completed the other vpython items for the things I was using.

The question I have: If there's a desire for a more complete version of a vpython.pyi stub, I could be convinced to complete it. The stubs probably belong here anyway, not in my GitHub account. If you want to have a look at my "incomplete" version, you can search for "vpython stubs" in GitHub, and you'll find it.