Skip to content

Commit f1b08d1

Browse files
author
Jeff Schroeder
committed
Add PythPriceInfo.__iter__() for simplifying tests
1 parent bc9c629 commit f1b08d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pythclient/pythaccounts.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,10 @@ def __str__(self) -> str:
396396
def __repr__(self) -> str:
397397
return str(self)
398398

399+
def __iter__(self):
400+
for key, val in self.__dict__.items():
401+
yield key, val
402+
399403

400404
class PythPriceComponent: # This has the individual prices each publisher
401405
"""

0 commit comments

Comments
 (0)