Add return types in transactions docstrings

This commit is contained in:
Mark Veidemanis 2021-12-27 21:20:15 +00:00
parent 5350a2e44c
commit 661582a97d
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 4 additions and 0 deletions

View File

@ -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.*")