From 30090c550803a40c06cc3b0dcae8469b2b9592fa Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Thu, 25 Apr 2024 10:51:30 +0100 Subject: [PATCH 1/3] Add py.typed to mark the library as typed 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. --- ollama/py.typed | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 ollama/py.typed diff --git a/ollama/py.typed b/ollama/py.typed new file mode 100644 index 0000000..e69de29 From c4931b202d985934c87533a5ed215227670a9f40 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Tue, 30 Apr 2024 18:19:08 +0100 Subject: [PATCH 2/3] Ensure that py.typed gets packaged and distributed --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 4a43139..dec905b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,9 @@ license = "MIT" readme = "README.md" homepage = "https://ollama.ai" repository = "https://github.com/jmorganca/ollama-python" +include = [ + "ollama/py.typed" +] [tool.poetry.dependencies] python = "^3.8" From fa7bf7cbd19b07aceb61725aad0763b47cdd8083 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Wed, 5 Jun 2024 19:43:37 +0100 Subject: [PATCH 3/3] Revert explicit inclusion of py.typed --- pyproject.toml | 3 --- 1 file changed, 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index dec905b..4a43139 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,9 +7,6 @@ license = "MIT" readme = "README.md" homepage = "https://ollama.ai" repository = "https://github.com/jmorganca/ollama-python" -include = [ - "ollama/py.typed" -] [tool.poetry.dependencies] python = "^3.8"