Skip to content

Commit baba970

Browse files
committed
Cleaned up imports removing unused List, Union, and WebElement
1 parent 8c0ae7e commit baba970

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

src/SeleniumLibrary/keywords/frames.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
16-
from typing import Union, List
17-
18-
from selenium.webdriver.remote.webelement import WebElement
1916

2017
from SeleniumLibrary.base import LibraryComponent, keyword
2118
from SeleniumLibrary.utils.types import Locator

src/SeleniumLibrary/keywords/screenshot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
16+
1617
import os
17-
from typing import Optional, Union, List
18+
from typing import Optional, Union
1819
from base64 import b64decode
1920

2021
from robot.utils import get_link_path
21-
from selenium.webdriver.remote.webelement import WebElement
2222
from selenium.webdriver.common.print_page_options import PrintOptions, Orientation
2323

2424
from SeleniumLibrary.base import LibraryComponent, keyword

src/SeleniumLibrary/keywords/tableelement.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@
1313
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
16-
from typing import Union, List
1716

1817
from selenium.webdriver.common.by import By
19-
from selenium.webdriver.remote.webelement import WebElement
2018

2119
from SeleniumLibrary.base import LibraryComponent, keyword
2220
from SeleniumLibrary.utils.types import Locator

src/SeleniumLibrary/keywords/waiting.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616

1717
import time
1818
from datetime import timedelta
19-
from typing import Optional, Union, List
19+
from typing import Optional
2020

2121
from selenium.common.exceptions import StaleElementReferenceException
22-
from selenium.webdriver.remote.webelement import WebElement
2322

2423
from SeleniumLibrary.base import LibraryComponent, keyword
2524
from SeleniumLibrary.errors import ElementNotFound

0 commit comments

Comments
 (0)