ollama-python icon indicating copy to clipboard operation
ollama-python copied to clipboard

Add py.typed to mark the library as typed

Open davep opened this issue 2 months ago • 4 comments

Removes an error like this:

error: Skipping analyzing "ollama":
module is installed, but missing library stubs or py.typed marker  [import-untyped]

when running mypy over code that uses the library.

davep avatar Apr 25 '24 09:04 davep

@jmorganca Any updates on this? It is quite hard to tell who the maintainer of this project is.

bpshaver avatar Apr 30 '24 17:04 bpshaver

I don't use poetry but I would be very surprised if it doesn't automatically include py.typed in the distribution package.

bpshaver avatar Apr 30 '24 17:04 bpshaver

@bpshaver You may be right, but I remember us needing to do this to convince Poetry to include it when building Textual; perhaps that's changed in the last year or so?

davep avatar Apr 30 '24 17:04 davep

Just did a test build without the include and it does look like it does include it anyway.

davep avatar Apr 30 '24 17:04 davep