From 661582a97d1952f0b3d45167e14883d0fe1be15a Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 27 Dec 2021 21:20:15 +0000 Subject: [PATCH] Add return types in transactions docstrings --- handler/transactions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/handler/transactions.py b/handler/transactions.py index 23cc3c9..9b01b1c 100644 --- a/handler/transactions.py +++ b/handler/transactions.py @@ -38,6 +38,8 @@ class Transactions(object): def transaction(self, data): """ Store details of transaction. + :param data: details of transaction + :type data: dict """ event = data["event"] ts = data["timestamp"] @@ -79,6 +81,8 @@ class Transactions(object): Find transactions that match the given reference and amount. :param reference: transaction reference in Revolut :param amount: transaction amount + :type reference: string + :type amount: int :return: transaction details or AMOUNT_INVALID, or False """ all_transactions = r.scan(0, match="tx.*")