[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.app import ComposeResult
|
||||||
from textual.containers import HorizontalGroup
|
from textual.containers import HorizontalGroup
|
||||||
from textual.screen import Screen
|
from textual.screen import Screen
|
||||||
|
|
@ -7,7 +5,6 @@ from textual.widget import Widget
|
||||||
from textual.widgets import DataTable, Footer, Header, Static, Input, Button
|
from textual.widgets import DataTable, Footer, Header, Static, Input, Button
|
||||||
|
|
||||||
|
|
||||||
@final
|
|
||||||
class SearchBar(Static):
|
class SearchBar(Static):
|
||||||
DEFAULT_CSS = """
|
DEFAULT_CSS = """
|
||||||
#teilchen-input {
|
#teilchen-input {
|
||||||
|
|
@ -18,7 +15,6 @@ class SearchBar(Static):
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@override
|
|
||||||
def compose(self) -> ComposeResult:
|
def compose(self) -> ComposeResult:
|
||||||
with HorizontalGroup(id="search-bar-widget"):
|
with HorizontalGroup(id="search-bar-widget"):
|
||||||
yield Input(
|
yield Input(
|
||||||
|
|
@ -60,9 +56,7 @@ FAKE_DATA: list[TeilchenHeader | TeilchenDatum] = [
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@final
|
|
||||||
class SearchResults(Widget):
|
class SearchResults(Widget):
|
||||||
@override
|
|
||||||
def compose(self) -> ComposeResult:
|
def compose(self) -> ComposeResult:
|
||||||
yield DataTable(id="table-search-result", cursor_type="row", zebra_stripes=True)
|
yield DataTable(id="table-search-result", cursor_type="row", zebra_stripes=True)
|
||||||
|
|
||||||
|
|
@ -73,7 +67,6 @@ class SearchResults(Widget):
|
||||||
|
|
||||||
|
|
||||||
class AddInventoryScreen(Screen[None]):
|
class AddInventoryScreen(Screen[None]):
|
||||||
@override
|
|
||||||
def compose(self) -> ComposeResult:
|
def compose(self) -> ComposeResult:
|
||||||
yield Header()
|
yield Header()
|
||||||
yield SearchBar()
|
yield SearchBar()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue