Skip to content

Commit

Permalink
Add missing @OverRide's
Browse files Browse the repository at this point in the history
  • Loading branch information
joce committed Nov 17, 2023
1 parent dc5eac7 commit 5326833
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/appui/_quote_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def __del__(self) -> None:
# Make sure the query thread is stopped
self._state.query_thread_running = False

@override
def on_mount(self) -> None:
"""The event handler called when the widget is added to the app."""

Expand Down Expand Up @@ -163,6 +164,7 @@ def _get_styled_cell(self, cell: QuoteCell) -> Text:
else "",
)

@override
def watch_hover_coordinate(self, old: Coordinate, value: Coordinate) -> None:
"""
Watch the hover coordinate and update the cursor type accordingly.
Expand Down
3 changes: 2 additions & 1 deletion src/appui/stockyardapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import json
import logging
from io import TextIOWrapper
from typing import Any, ClassVar, Optional
from typing import Any, ClassVar, Optional, override

from textual import work
from textual.app import App, ComposeResult
Expand Down Expand Up @@ -44,6 +44,7 @@ def __init__(self) -> None:
self._state: StockyardAppState = StockyardAppState(self.__yfinance)
self._priming_worker: Optional[Worker[None]] = None

@override
def compose(self) -> ComposeResult:
"""Create child widgets for the app."""

Expand Down

0 comments on commit 5326833

Please sign in to comment.