Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tko remove python 3 8 #168

Merged
merged 3 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions QWeb/internal/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.
# ---------------------------
from __future__ import annotations
from typing import Optional, Callable, Any, Union
from typing import Optional, Callable, Any, Union, List
import os
import time
from functools import wraps
Expand Down Expand Up @@ -181,14 +181,14 @@ def all_frames(fn: Callable[..., Any]) -> Callable[..., Any]:
"""

@wraps(fn)
def wrapped(*args, **kwargs) -> Callable[..., Any]:
def wrapped(*args, **kwargs) -> Union[Callable[..., Any], List[Any], Any]:
# Default behavior is not to continue searching
continue_search = kwargs.get("continue_search", False)

# pylint: disable=too-many-branches
def search_from_frames(
driver: Optional[WebDriver] = None, current_frame: Optional[WebElement] = None
) -> Callable[..., Any]:
) -> Union[List[Any], Any]:
# Initialize the list to store found elements if continue_search is True
all_elements = []
keep_frame = kwargs.get("stay_in_current_frame", CONFIG["StayInCurrentFrame"])
Expand Down Expand Up @@ -259,7 +259,7 @@ def search_from_frames_safari(
driver: Optional[WebDriver] = None,
current_frame: Union[Optional[WebElement], int] = None,
parent_tree: list[Union[WebElement, int]] = [],
) -> Callable[..., Any]:
) -> Union[List[Any], Any]:
# Initialize the list to store found elements if continue_search is True
all_elements = []
keep_frame = kwargs.get("stay_in_current_frame", CONFIG["StayInCurrentFrame"])
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ See [examples](#examples).

---
## Requirements
Python **3.8-3.11** and Robot Framework 4.1.3 or above.
Python **3.9-3.12** and Robot Framework 4.1.3 or above.

(Note that support on Macs with Apple based silicon (M1) requires MacOS version 12/Monterey or above or [custom installation](https://github.com/qentinelqi/qweb/blob/master/docs/qweb_mac_m1_installation.md).)

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
packages=find_packages(exclude=["*.test", "*.test.*", "test.*", "test"]),

classifiers=[
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
Expand Down
Loading