remove stupid rules

This commit is contained in:
Deeman
2025-10-12 21:44:56 +02:00
parent 7e06eae5ac
commit 6c93021f2d
9 changed files with 20 additions and 35 deletions

View File

@@ -16,19 +16,19 @@ class Instance:
class ProviderModule(Protocol):
def create_instance(
name: str,
self: str,
instance_type: str,
ssh_key: str,
location: str | None = None,
) -> Instance: ...
def destroy_instance(instance_id: str) -> None: ...
def destroy_instance(self: str) -> None: ...
def list_instances(label: str | None = None) -> list[Instance]: ...
def list_instances(self: str | None = None) -> list[Instance]: ...
def get_instance(name: str) -> Instance | None: ...
def get_instance(self: str) -> Instance | None: ...
def wait_for_ssh(ip: str, timeout: int = 300) -> bool: ...
def wait_for_ssh(self: str, timeout: int = 300) -> bool: ...
def get_provider(provider_name: str) -> ProviderModule:

View File

@@ -1,7 +1,7 @@
"""Hetzner Cloud provider implementation."""
import time
import socket
import time
from hcloud import Client
from hcloud.images import Image