8000 Fix type annotation · turian/llama-cpp-python@b703aad · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit b703aad

Browse files
committed
Fix type annotation
1 parent d0aedfc commit b703aad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama_cpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ def llama_kv_cache_view_free(view: "ctypes._Pointer[llama_kv_cache_view]"): # ty
10701070

10711071
# // Update the KV cache view structure with the current state of the KV cache. (use only for debugging purposes)
10721072
# LLAMA_API void llama_kv_cache_view_update(const struct llama_context * ctx, struct llama_kv_cache_view * view);
1073-
def llama_kv_cache_view_update(ctx: llama_context_p, view: llama_kv_cache_view_p):
1073+
def llama_kv_cache_view_update(ctx: llama_context_p, view: "ctypes._Pointer[llama_kv_cache_view]"): # type: ignore
10741074
"""Update the KV cache view structure with the current state of the KV cache. (use only for debugging purposes)"""
10751075
return _lib.llama_kv_cache_view_update(ctx, view)
10761076

0 commit comments

Comments
 (0)
0