Skip to content

Commit

Permalink
fix: Missing/incorrect type hints (#1242)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler committed Feb 15, 2024
1 parent dc3ae86 commit a013448
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion splinter/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
logger.debug(f"Import Warning: {e}")


def get_driver(driver, retry_count=3, config=None, *args, **kwargs):
def get_driver(driver, retry_count: int = 3, config=None, *args, **kwargs):
"""Try to instantiate the driver.
Common selenium errors are caught and a retry attempt occurs.
Expand Down
6 changes: 3 additions & 3 deletions splinter/driver/webdriver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ def find_by(
self,
finder,
finder_kwargs=None,
original_find: str = None,
original_query: str = None,
wait_time: int = None,
original_find: Optional[str] = None,
original_query: Optional[str] = None,
wait_time: Optional[int] = None,
):
"""Wrapper for finding elements.
Expand Down

0 comments on commit a013448

Please sign in to comment.