From c9c77684184061111a3db2bde822dece8c4f36f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 25 Feb 2025 18:45:40 +0800 Subject: [PATCH] gdctl: Add __str__(self) for Dimension too Part-of: --- tools/gdctl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/gdctl b/tools/gdctl index 0602f5b27..3e6dfec28 100755 --- a/tools/gdctl +++ b/tools/gdctl @@ -26,6 +26,9 @@ class Dimension(NamedTuple): width: int height: int + def __str__(self): + return f"{self.width}x{self.height}" + class Position(NamedTuple): x: int | None