mypy fixups

This commit is contained in:
Keith Edmunds 2025-03-06 11:33:53 +00:00
parent 2293c663b9
commit 63b1d0dff4
5 changed files with 13 additions and 4 deletions

View File

@ -130,7 +130,6 @@ class PlaylistRowsTable(Model):
)
playlist: Mapped[PlaylistsTable] = relationship(back_populates="rows")
track_id: Mapped[Optional[int]] = mapped_column(ForeignKey("tracks.id", ondelete="CASCADE"))
track_id: Mapped[Optional[int]] = mapped_column(
ForeignKey("tracks.id", ondelete="CASCADE")
)

View File

@ -458,7 +458,7 @@ class RowAndTrack:
self.title = playlist_row.track.title
else:
self.artist = ""
self.bitrate = None
self.bitrate = 0
self.duration = 0
self.fade_at = 0
self.intro = None

View File

@ -31,7 +31,6 @@ from PyQt6.QtWidgets import (
)
# Third party imports
import line_profiler
# App imports
from audacity_controller import AudacityController
@ -1112,7 +1111,6 @@ class PlaylistTab(QTableView):
self.setSpan(row, column, rowSpan, columnSpan)
@line_profiler.profile
def tab_live(self) -> None:
"""
Called when tab gets focus

View File

@ -30,6 +30,7 @@ dependencies = [
"types-psutil>=6.0.0.20240621",
"pyyaml (>=6.0.2,<7.0.0)",
"audioop-lts>=0.2.1",
"types-pyyaml>=6.0.12.20241230",
]
[dependency-groups]

11
uv.lock
View File

@ -469,6 +469,7 @@ dependencies = [
{ name = "stackprinter" },
{ name = "tinytag" },
{ name = "types-psutil" },
{ name = "types-pyyaml" },
]
[package.dev-dependencies]
@ -511,6 +512,7 @@ requires-dist = [
{ name = "stackprinter", specifier = ">=0.2.10" },
{ name = "tinytag", specifier = ">=1.10.1" },
{ name = "types-psutil", specifier = ">=6.0.0.20240621" },
{ name = "types-pyyaml", specifier = ">=6.0.12.20241230" },
]
[package.metadata.requires-dev]
@ -1115,6 +1117,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/50/c8/f4365293408da4a9bcb1849d3efd8c60427cffff68cbb98ab1b81851d8bb/types_psutil-7.0.0.20250218-py3-none-any.whl", hash = "sha256:1447a30c282aafefcf8941ece854e1100eee7b0296a9d9be9977292f0269b121", size = 22763 },
]
[[package]]
name = "types-pyyaml"
version = "6.0.12.20241230"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/9a/f9/4d566925bcf9396136c0a2e5dc7e230ff08d86fa011a69888dd184469d80/types_pyyaml-6.0.12.20241230.tar.gz", hash = "sha256:7f07622dbd34bb9c8b264fe860a17e0efcad00d50b5f27e93984909d9363498c", size = 17078 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/e8/c1/48474fbead512b70ccdb4f81ba5eb4a58f69d100ba19f17c92c0c4f50ae6/types_PyYAML-6.0.12.20241230-py3-none-any.whl", hash = "sha256:fa4d32565219b68e6dee5f67534c722e53c00d1cfc09c435ef04d7353e1e96e6", size = 20029 },
]
[[package]]
name = "typing-extensions"
version = "4.12.2"