A __repr__ for Pairs
This commit is contained in:
parent
c047e5f16a
commit
d7dfc85cf7
1 changed files with 4 additions and 0 deletions
|
|
@ -964,6 +964,10 @@ def __init__(self, horizontal=True):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue