Massive refactor (Zed wouldn't stop complaining about formatting) and
beginning of proper GNOME implementation.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
from .structs import MonitorInfo, Modeline
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
from pathlib import Path
|
||||
|
||||
from .structs import Modeline, MonitorInfo
|
||||
|
||||
|
||||
class AbstractDisplay(ABC):
|
||||
@abstractmethod
|
||||
@@ -12,15 +14,14 @@ class AbstractDisplay(ABC):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def save_current_mode(self, location: str) -> None:
|
||||
def save_current_mode(self, location: str | Path) -> None:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def read_saved_mode(self, location: str) -> Modeline:
|
||||
def read_saved_mode(self, location: str | Path) -> Modeline:
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
@abstractmethod
|
||||
def detect(self) -> bool:
|
||||
def detect() -> bool:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user