Jueri commited on
Commit
40f9671
1 Parent(s): 1310c1d

remove typing

Browse files
Files changed (1) hide show
  1. clean_bibtex/clean_bibtex.py +4 -5
clean_bibtex/clean_bibtex.py CHANGED
@@ -7,11 +7,10 @@ Example:
7
 
8
  import requests
9
  import click
10
- from typing import Optional
11
  import time
12
 
13
 
14
- def parse_bibtext_file_titles(file_path: str) -> list[str]:
15
  """Function to parse the titles of the publications from a BibTeX file.
16
 
17
  Args:
@@ -40,7 +39,7 @@ def parse_bibtext_file_titles(file_path: str) -> list[str]:
40
  raise
41
 
42
 
43
- def get_url(title: str) -> Optional[str]:
44
  """Search DBLP with a publication title and parse the pdf from the best result.json.
45
 
46
  Args:
@@ -59,7 +58,7 @@ def get_url(title: str) -> Optional[str]:
59
  return None
60
 
61
 
62
- def get_dblp_bibtext(url: str) -> Optional[str]:
63
  """Get the bibtext reference from a dblp publikation site url.
64
 
65
  Args:
@@ -78,7 +77,7 @@ def get_dblp_bibtext(url: str) -> Optional[str]:
78
  @click.command()
79
  @click.argument("input_file")
80
  @click.argument("outpu_file")
81
- def clean_bibtex(outpu_file: str, input_file: str):
82
  """Convert an incomplete BibTeX file into a complete BibTeX file with dblp styling.
83
 
84
  Args:
 
7
 
8
  import requests
9
  import click
 
10
  import time
11
 
12
 
13
+ def parse_bibtext_file_titles(file_path):
14
  """Function to parse the titles of the publications from a BibTeX file.
15
 
16
  Args:
 
39
  raise
40
 
41
 
42
+ def get_url(title):
43
  """Search DBLP with a publication title and parse the pdf from the best result.json.
44
 
45
  Args:
 
58
  return None
59
 
60
 
61
+ def get_dblp_bibtext(url):
62
  """Get the bibtext reference from a dblp publikation site url.
63
 
64
  Args:
 
77
  @click.command()
78
  @click.argument("input_file")
79
  @click.argument("outpu_file")
80
+ def clean_bibtex(outpu_file, input_file):
81
  """Convert an incomplete BibTeX file into a complete BibTeX file with dblp styling.
82
 
83
  Args: