Skip to content

Commit 7b9c021

Browse files
committed
Fix types for Python 3.9
1 parent e11b01e commit 7b9c021

8 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/pytest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13" ]
10+
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ]
1111
fail-fast: false
1212
env:
1313
IS_GITHUB_RUNNER: "true"
@@ -45,4 +45,4 @@ jobs:
4545
env:
4646
PR_URL: ${{ github.event.pull_request.html_url }}
4747
GH_TOKEN: ${{ secrets.DEPENDABOT_TOKEN }}
48-
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_TOKEN }}
48+
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_TOKEN }}

recoverpy/lib/env_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
_root_error_message = "The current user is not root, the search is likely to not work. Run this app as root or use sudo."
1313
_version_error_message = (
14-
"The current Python version is not supported. Please use Python 3.8 or higher."
14+
"The current Python version is not supported. Please use Python 3.9 or higher."
1515
)
1616
_linux_error_message = (
1717
"Your system may not be Linux-based, the application might not work correctly."

recoverpy/models/search_progress.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Shared mutable search progress state consumed by the UI."""
22

3+
from __future__ import annotations
4+
35
class SearchProgress:
46
def __init__(self) -> None:
57
self.result_count = 0

recoverpy/ui/screens/screen_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"""First screen displayed to the user.
22
Allows user to enter search string and select partition."""
33

4+
from __future__ import annotations
5+
46
from typing import Generator, Optional
57

68
from textual.app import ComposeResult

recoverpy/ui/screens/screen_path_edit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Screen used to select result save path."""
22

3+
from __future__ import annotations
4+
35
from textual.app import ComposeResult
46
from textual.binding import Binding
57
from textual.containers import Horizontal

recoverpy/ui/screens/screen_result.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Screen displaying recovered block content."""
22

3+
from __future__ import annotations
4+
35
from typing import Optional, cast
46

57
from textual.app import ComposeResult

recoverpy/ui/screens/screen_save.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Screen used to confirm save."""
22

3+
from __future__ import annotations
4+
35
from typing import Optional, cast
46

57
from textual.app import ComposeResult

recoverpy/ui/screens/screen_search.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Screen displaying search results."""
22

3+
from __future__ import annotations
4+
35
from asyncio import Task, create_task
46

57
from textual.app import ComposeResult

0 commit comments

Comments
 (0)