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

refactor: Fix type annotation errors and remove unused code

Open jakekasan opened this issue 5 months ago • 0 comments

This change fixes annoying LSP diagnostic errors when using this library and pyright/basedpyright is set to strict mode.

The main issue was that the overloads for methods with a stream option were incorrect and confused the LSP. Also removes a function that was never used.

jakekasan avatar Aug 04 '25 16:08 jakekasan