Please expose the contents of the _type file to allow for better static type analysis #139

Closed
opened 2026-02-15 16:28:15 -05:00 by yindo · 1 comment
Owner

Originally created by @johnch18 on GitHub (Sep 10, 2024).

Originally assigned to: @mxyng on GitHub.

I am writing some wrapper/library code using Ollama, and I'm running into issues when trying to type hint. Not all of the types used in the library are public, and I would appreciate if that were to be remedied.

The simplest fix at present would be to include the contents of _type in the ollama __init__ file.

Thanks

Originally created by @johnch18 on GitHub (Sep 10, 2024). Originally assigned to: @mxyng on GitHub. I am writing some wrapper/library code using Ollama, and I'm running into issues when trying to type hint. Not all of the types used in the library are public, and I would appreciate if that were to be remedied. The simplest fix at present would be to include the contents of `_type` in the ollama `__init__` file. Thanks
yindo closed this issue 2026-02-15 16:28:15 -05:00
Author
Owner

@mxyng commented on GitHub (Sep 10, 2024):

More types will be exported in the next release. I have a change almost ready for a PR

@mxyng commented on GitHub (Sep 10, 2024): More types will be exported in the next release. I have a change _almost_ ready for a PR
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#139