[PR #129] [MERGED] Add py.typed to mark the library as typed #372

Closed
opened 2026-02-15 16:30:09 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama-python/pull/129
Author: @davep
Created: 4/25/2024
Status: Merged
Merged: 6/5/2024
Merged by: @mxyng

Base: mainHead: mark-as-typed


📝 Commits (3)

  • 30090c5 Add py.typed to mark the library as typed
  • c4931b2 Ensure that py.typed gets packaged and distributed
  • fa7bf7c Revert explicit inclusion of py.typed

📊 Changes

1 file changed (+0 additions, -0 deletions)

View changed files

ollama/py.typed (+0 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama-python/pull/129 **Author:** [@davep](https://github.com/davep) **Created:** 4/25/2024 **Status:** ✅ Merged **Merged:** 6/5/2024 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mark-as-typed` --- ### 📝 Commits (3) - [`30090c5`](https://github.com/ollama/ollama-python/commit/30090c550803a40c06cc3b0dcae8469b2b9592fa) Add py.typed to mark the library as typed - [`c4931b2`](https://github.com/ollama/ollama-python/commit/c4931b202d985934c87533a5ed215227670a9f40) Ensure that py.typed gets packaged and distributed - [`fa7bf7c`](https://github.com/ollama/ollama-python/commit/fa7bf7cbd19b07aceb61725aad0763b47cdd8083) Revert explicit inclusion of py.typed ### 📊 Changes **1 file changed** (+0 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `ollama/py.typed` (+0 -0) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 16:30:09 -05:00
yindo closed this issue 2026-02-15 16:30:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#372