clan-vm-manager: remove type assertions

we use mypy already, so these type assertions don't make sense.
Also we no longer have strings and always FlakeId in this case
This commit is contained in:
Jörg Thalheim
2024-08-26 15:46:29 +02:00
parent 07b8c62e1d
commit 434fdacdb8
3 changed files with 1 additions and 12 deletions

View File

@@ -110,12 +110,8 @@ class ClanStore:
def log_details(gfile: Gio.File) -> None:
self.log_details(vm, gfile)
assert isinstance(entry.flake.flake_url, FlakeId)
vm = VMObject(icon=icon, data=entry, build_log_cb=log_details)
assert isinstance(vm.data.flake.flake_url, FlakeId)
self.push(vm)
assert isinstance(vm.data.flake.flake_url, FlakeId)
def log_details(self, vm: VMObject, gfile: Gio.File) -> None:
views = ViewStack.use().view