Skip to content

Commit 0f4f831

Browse files
author
Colin Leong
committed
CDL: updating type hints
1 parent a686e9d commit 0f4f831

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/find_bare_citations.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99
import argparse
1010
import timeit
1111
import uuid
12+
from typing import Generator, List
1213

1314

14-
def extract_citation_keys(bib_file_path):
15+
def extract_citation_keys(bib_file_path:Path) ->List[str]:
1516
content = bib_file_path.read_text()
1617
citation_keys = re.findall(r"@\w+\{([^,]+),", content)
1718
return citation_keys
1819

19-
def find_bare_citations(markdown_file_path: Path, citation_keys: list) -> list:
20+
def find_bare_citations(markdown_file_path: Path, citation_keys: List) -> Generator[str, List[str]]:
2021
content = markdown_file_path.read_text()
2122

2223
# Remove HTML comments. regex from https://stackoverflow.com/a/28208465

0 commit comments

Comments
 (0)