From d980fa973a5c66d59334abd3f70d4e7bff4b7ec4 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Fri, 2 Aug 2024 18:26:13 +0200 Subject: [PATCH] Lint --- llama_cpp/llama_cpp.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/llama_cpp/llama_cpp.py b/llama_cpp/llama_cpp.py index 727195cf5..0d30d6be9 100644 --- a/llama_cpp/llama_cpp.py +++ b/llama_cpp/llama_cpp.py @@ -1,22 +1,22 @@ from __future__ import annotations -import sys -import os import ctypes import functools +import os import pathlib - +import sys from typing import ( + TYPE_CHECKING, Any, Callable, + Generic, List, - Union, NewType, Optional, - TYPE_CHECKING, TypeVar, - Generic, + Union, ) + from typing_extensions import TypeAlias @@ -1767,7 +1767,7 @@ def llama_kv_cache_view_init( # // Free a KV cache view. (use only for debugging purposes) # LLAMA_API void llama_kv_cache_view_free(struct llama_kv_cache_view * view); @ctypes_function("llama_kv_cache_view_free", [llama_kv_cache_view_p], None) -def llama_kv_cache_view_free(view: "ctypes.pointer[llama_kv_cache_view]", /): # type: ignore +def llama_kv_cache_view_free(view: ctypes.pointer[llama_kv_cache_view], /): # type: ignore """Free a KV cache view. (use only for debugging purposes)""" ...