We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e3f6cd commit db3689bCopy full SHA for db3689b
code_embedder/script_metadata_extractor.py
@@ -1,5 +1,5 @@
1
import re
2
-from typing import Protocol
+from typing import Optional, Protocol
3
4
from code_embedder.script_metadata import ScriptMetadata
5
@@ -40,7 +40,7 @@ def _is_code_block_start(self, line: str) -> bool:
40
def _is_code_block_end(self, line: str) -> bool:
41
return line.strip() == self._code_block_end
42
43
- def _start_new_block(self, line: str, row: int) -> dict | None:
+ def _start_new_block(self, line: str, row: int) -> Optional[dict]:
44
tag_items = line.split(self._path_separator)
45
path = tag_items[1].strip()
46
extraction_type = tag_items[2].strip() if len(tag_items) > 2 else "full"
0 commit comments