[typing] remove various decorators that we only used to hep basedpyright
ty solves this so much better
This commit is contained in:
parent
312e60fa1f
commit
d2b6e11fe4
1 changed files with 0 additions and 7 deletions
|
|
@ -1,5 +1,3 @@
|
|||
from typing import Literal, final, override
|
||||
|
||||
from textual.app import ComposeResult
|
||||
from textual.containers import HorizontalGroup
|
||||
from textual.screen import Screen
|
||||
|
|
@ -7,7 +5,6 @@ from textual.widget import Widget
|
|||
from textual.widgets import DataTable, Footer, Header, Static, Input, Button
|
||||
|
||||
|
||||
@final
|
||||
class SearchBar(Static):
|
||||
DEFAULT_CSS = """
|
||||
#teilchen-input {
|
||||
|
|
@ -18,7 +15,6 @@ class SearchBar(Static):
|
|||
}
|
||||
"""
|
||||
|
||||
@override
|
||||
def compose(self) -> ComposeResult:
|
||||
with HorizontalGroup(id="search-bar-widget"):
|
||||
yield Input(
|
||||
|
|
@ -60,9 +56,7 @@ FAKE_DATA: list[TeilchenHeader | TeilchenDatum] = [
|
|||
]
|
||||
|
||||
|
||||
@final
|
||||
class SearchResults(Widget):
|
||||
@override
|
||||
def compose(self) -> ComposeResult:
|
||||
yield DataTable(id="table-search-result", cursor_type="row", zebra_stripes=True)
|
||||
|
||||
|
|
@ -73,7 +67,6 @@ class SearchResults(Widget):
|
|||
|
||||
|
||||
class AddInventoryScreen(Screen[None]):
|
||||
@override
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Header()
|
||||
yield SearchBar()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue