codestyle: remove assignment to _: we no longer need to quieten the LSP
This commit is contained in:
parent
9728e764e9
commit
c3d5983d23
1 changed files with 4 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ from textual.widgets import Button, DataTable, Footer, Header, Input, Static
|
||||||
from .models import load_initial_data
|
from .models import load_initial_data
|
||||||
|
|
||||||
|
|
||||||
FAKE_DATA_HEADER = "pk Name Description Number Tags".split()
|
TEILCHEN_DATA_HEADER = "pk Name Description Number Tags".split()
|
||||||
|
|
||||||
|
|
||||||
class SearchBar(Static):
|
class SearchBar(Static):
|
||||||
|
|
@ -46,9 +46,9 @@ class SearchResults(Widget):
|
||||||
yield DataTable(id="table-search-result", cursor_type="row", zebra_stripes=True)
|
yield DataTable(id="table-search-result", cursor_type="row", zebra_stripes=True)
|
||||||
|
|
||||||
async def on_mount(self) -> None:
|
async def on_mount(self) -> None:
|
||||||
table: DataTable[None] = self.query_one(DataTable[None])
|
table: DataTable = self.query_one(DataTable)
|
||||||
_ = table.add_columns(*FAKE_DATA_HEADER)
|
table.add_columns(*TEILCHEN_DATA_HEADER)
|
||||||
_ = table.add_rows(await load_initial_data())
|
table.add_rows(await load_initial_data())
|
||||||
|
|
||||||
|
|
||||||
class AddInventoryScreen(Screen[None]):
|
class AddInventoryScreen(Screen[None]):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue