From c82ef3369a46a05600dc2bf5499802205b62c3ae Mon Sep 17 00:00:00 2001 From: Joshua Fehler Date: Sun, 23 Jun 2024 21:47:32 -0400 Subject: [PATCH] fixup: py38 --- splinter/driver/webdriver/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/splinter/driver/webdriver/__init__.py b/splinter/driver/webdriver/__init__.py index dd306e44a..bfdfa12a4 100644 --- a/splinter/driver/webdriver/__init__.py +++ b/splinter/driver/webdriver/__init__.py @@ -7,7 +7,7 @@ import time import warnings from contextlib import contextmanager -from typing import Optional +from typing import Dict, Optional from selenium.common.exceptions import ElementClickInterceptedException from selenium.common.exceptions import MoveTargetOutOfBoundsException @@ -712,7 +712,7 @@ def __init__(self, element, parent): self.wait_time = self.parent.wait_time self.element_class = self.parent.element_class - def _as_id_dict(self) -> dict[str, str]: + def _as_id_dict(self) -> Dict[str, str]: """Get the canonical object to identify an element by it's ID. When sent to the browser, it will be used to build an Element object. @@ -770,7 +770,7 @@ def _set_value(self, value): def __getitem__(self, attr): return self._element.get_attribute(attr) - def _as_id_dict(self) -> dict[str, str]: + def _as_id_dict(self) -> Dict[str, str]: """Get the canonical object to identify an element by it's ID. When sent to the browser, it will be used to build an Element object.