File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ description = "The Sphinx theme for the CPython docs and related projects"
11
11
readme = " README.md"
12
12
license.file = " LICENSE"
13
13
authors = [{name = " PyPA" , email = " distutils-sig@python.org" }]
14
- requires-python = " >=3.8 "
14
+ requires-python = " >=3.9 "
15
15
classifiers = [
16
16
" Development Status :: 5 - Production/Stable" ,
17
17
" Framework :: Sphinx :: Theme" ,
@@ -20,7 +20,6 @@ classifiers = [
20
20
" Operating System :: OS Independent" ,
21
21
" Programming Language :: Python" ,
22
22
" Programming Language :: Python :: 3 :: Only" ,
23
- " Programming Language :: Python :: 3.8" ,
24
23
" Programming Language :: Python :: 3.9" ,
25
24
" Programming Language :: Python :: 3.10" ,
26
25
" Programming Language :: Python :: 3.11" ,
Original file line number Diff line number Diff line change 2
2
3
3
import hashlib
4
4
import os
5
- from functools import lru_cache
5
+ from functools import cache
6
6
from pathlib import Path
7
7
from typing import Any
8
8
12
12
THEME_PATH = Path (__file__ ).parent .resolve ()
13
13
14
14
15
- @lru_cache ( maxsize = None )
15
+ @cache
16
16
def _asset_hash (path : str ) -> str :
17
17
"""Append a `?digest=` to an url based on the file content."""
18
18
full_path = THEME_PATH / path .replace ("_static/" , "static/" )
You can’t perform that action at this time.
0 commit comments