Skip to content

Commit

Permalink
Blackened type hints, and added type hint for api_key
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza committed Nov 2, 2023
1 parent 9256c56 commit 63e0251
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions easy_entrez/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,14 @@ class EntrezAPI:
"""

def __init__(
self, tool: str, email: str, api_key=None,
return_type: ReturnType = 'json',
self,
tool: str,
email: str,
api_key: Optional[str] = None,
return_type: ReturnType = "json",
minimal_interval: float = 0.334,
timeout: float = 10,
server: str = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/'
server: str = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/",
):
self.server = server
self.tool = tool
Expand Down

0 comments on commit 63e0251

Please sign in to comment.