Skip to content

Commit 621fdf2

Browse files
committed
use lru_cache
1 parent 1af1a4a commit 621fdf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pylsp_ruff/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import re
55
import shutil
66
import sys
7-
from functools import cache
7+
from functools import lru_cache
88
from pathlib import PurePath
99
from subprocess import PIPE, Popen
1010
from typing import Dict, Generator, List, Optional
@@ -487,7 +487,7 @@ def run_ruff_format(
487487
)
488488

489489

490-
@cache
490+
@lru_cache
491491
def find_executable(executable):
492492
if executable is not None:
493493
cmd = [executable]

0 commit comments

Comments
 (0)