Skip to content

Commit b8a6ff4

Browse files
committed
Use built-in types instead of typing
1 parent 5270390 commit b8a6ff4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/create_ops_docs.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import logging
88
import sys
99
from pathlib import Path
10-
from typing import Dict, List, Set
1110
from collections import defaultdict
1211

1312

@@ -16,11 +15,11 @@ def __init__(self, ggml_root: str, output_filename: str = "ops.md"):
1615
self.ggml_root = Path(ggml_root)
1716
self.ops_dir = self.ggml_root / "docs" / "ops"
1817
self.output_filename = output_filename
19-
self.backend_support: Dict[str, Dict[str, List[bool]]] = defaultdict(
18+
self.backend_support: dict[str, dict[str, list[bool]]] = defaultdict(
2019
lambda: defaultdict(list)
2120
)
22-
self.all_operations: Set[str] = set()
23-
self.all_backends: Set[str] = set()
21+
self.all_operations: set[str] = set()
22+
self.all_backends: set[str] = set()
2423
self.logger = logging.getLogger(__name__)
2524

2625
def parse_support_files(self) -> None:

0 commit comments

Comments
 (0)