mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-09 15:08:13 +02:00
A __repr__ for Pairs
This commit is contained in:
@@ -964,6 +964,10 @@ class Pair:
|
||||
self.one = self.two = None
|
||||
self.bias = 0.5
|
||||
|
||||
def __repr__(self):
|
||||
return 'Pair(horizontal={}, bias={:.2f}, one={}, two={})'.format(
|
||||
self.horizontal, self.bias, self.one, self.two)
|
||||
|
||||
def all_window_ids(self):
|
||||
if self.one is not None:
|
||||
if isinstance(self.one, Pair):
|
||||
|
||||
Reference in New Issue
Block a user