pkgs/cli: Add @override decorator

This commit is contained in:
a-kenji
2024-11-12 14:02:12 +01:00
committed by Mic92
parent 7fd01b009f
commit c0678885b5

View File

@@ -1,6 +1,7 @@
import os import os
import subprocess import subprocess
from pathlib import Path from pathlib import Path
from typing import override
from clan_cli.machines.machines import Machine from clan_cli.machines.machines import Machine
from clan_cli.nix import nix_shell from clan_cli.nix import nix_shell
@@ -90,8 +91,7 @@ class SecretStore(SecretStoreBase):
hashes.sort() hashes.sort()
return b"\n".join(hashes) return b"\n".join(hashes)
# FIXME: add this when we switch to python3.12 @override
# @override
def update_check(self) -> bool: def update_check(self) -> bool:
local_hash = self.generate_hash() local_hash = self.generate_hash()
remote_hash = self.machine.target_host.run( remote_hash = self.machine.target_host.run(