remove stupid rules
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""Hetzner Cloud provider implementation."""
|
||||
|
||||
import time
|
||||
import socket
|
||||
import time
|
||||
|
||||
from hcloud import Client
|
||||
from hcloud.images import Image
|
||||
|
||||
Reference in New Issue
Block a user