JuliaPy / PythonCall.jl

Python and Julia in harmony.
https://juliapy.github.io/PythonCall.jl/stable/
MIT License
715 stars 61 forks source link

Typing stubs #467

Open MilesCranmer opened 3 months ago

MilesCranmer commented 3 months ago

Not urgent but just leaving this here for a future feature request. Right now if you do anything with mypy, you need to flag imports of juliacall with

from juliacall import Main as jl  # type: ignore

Because juliacall does not have type stubs available. It would be nice to have type hinting in Python for Julia objects, especially as Python moves more in this direction.