Skip to content

Commit

Permalink
types, drop 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshKarpel committed Oct 7, 2023
1 parent c677eab commit 761a2d2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/quality-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11"]
defaults:
run:
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions spiel/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from functools import cached_property, partial
from pathlib import Path
from time import monotonic
from typing import Callable, ClassVar, ContextManager, Iterator, List
from typing import Callable, ClassVar, ContextManager, Iterator, List, Tuple

from rich.style import Style
from rich.text import Text
Expand Down Expand Up @@ -67,7 +67,7 @@ def load_deck(path: Path) -> Deck:

class SpielApp(App[None]):
CSS_PATH = "spiel.css"
BINDINGS: ClassVar[List[Binding]] = [
BINDINGS: ClassVar[List[Binding | Tuple[str, str, str]]] = [
Binding("d", "switch_screen('deck')", "Go to the Deck view."),
Binding("question_mark", "push_screen('help')", "Go to the Help view."),
Binding("i", "repl", "Switch to the REPL."),
Expand Down
4 changes: 2 additions & 2 deletions spiel/screens/deck.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import ClassVar, List
from typing import ClassVar, List, Tuple

from textual.app import ComposeResult
from textual.binding import Binding
Expand All @@ -11,7 +11,7 @@


class DeckScreen(SpielScreen):
BINDINGS: ClassVar[List[Binding]] = [
BINDINGS: ClassVar[List[Binding | Tuple[str, str, str]]] = [
Binding("right", "next_slide", "Go to next slide."),
Binding("left", "prev_slide", "Go to previous slide."),
Binding("down", "next_row", "Go to next row of slides."),
Expand Down
4 changes: 2 additions & 2 deletions spiel/screens/help.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import ClassVar, List
from typing import ClassVar, List, Tuple

from textual.app import ComposeResult
from textual.binding import Binding
Expand All @@ -21,7 +21,7 @@ class HelpScreen(SpielScreen):
}
"""

BINDINGS: ClassVar[List[Binding]] = [
BINDINGS: ClassVar[List[Binding | Tuple[str, str, str]]] = [
Binding("escape,enter", "pop_screen", "Return to the previous view."),
]

Expand Down
4 changes: 2 additions & 2 deletions spiel/screens/slide.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import inspect
from typing import ClassVar, List
from typing import ClassVar, List, Tuple

from textual.app import ComposeResult
from textual.binding import Binding
Expand All @@ -15,7 +15,7 @@


class SlideScreen(SpielScreen):
BINDINGS: ClassVar[List[Binding]] = [
BINDINGS: ClassVar[List[Binding | Tuple[str, str, str]]] = [
Binding("right", "next_slide", "Go to next slide."),
Binding("left", "prev_slide", "Go to previous slide."),
Binding("t", "trigger", "Trigger the current slide."),
Expand Down

0 comments on commit 761a2d2

Please sign in to comment.