Skip to content

Commit ddfaf83

Browse files
Apply ruff/pyupgrade rule UP033 to notebooks
UP033 Use `@functools.cache` instead of `@functools.lru_cache(maxsize=None)`
1 parent 8af7f8d commit ddfaf83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebooks/genotype_benchmark_compressors.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
},
286286
"outputs": [],
287287
"source": [
288-
"@functools.lru_cache(maxsize=None)\n",
288+
"@functools.cache\n",
289289
"def compression_ratios():\n",
290290
" x = list()\n",
291291
" for compression, compression_opts in compression_configs:\n",
@@ -352,7 +352,7 @@
352352
},
353353
"outputs": [],
354354
"source": [
355-
"@functools.lru_cache(maxsize=None)\n",
355+
"@functools.cache\n",
356356
"def compression_decompression_times(repeat=3, number=1):\n",
357357
" c = list()\n",
358358
" d = list()\n",

0 commit comments

Comments
 (0)