Browse Source

fix type annotation

Falko Schindler 1 year ago
parent
commit
449b9c7f5d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      website/documentation/search.py

+ 2 - 1
website/documentation/search.py

@@ -1,4 +1,5 @@
 from pathlib import Path
+from typing import Dict, List
 
 from fastapi.responses import JSONResponse
 
@@ -8,7 +9,7 @@ from ..examples import examples
 from .content import registry
 
 PATH = Path(__file__).parent.parent / 'static' / 'search_index.json'
-search_index: list[dict[str, str]] = []
+search_index: List[Dict[str, str]] = []
 
 
 @app.get('/static/search_index.json')