Skip to content

Commit

Permalink
Add unit test for MonarchMoney.get_accounts()
Browse files Browse the repository at this point in the history
Also fix some typing errors in MonarchMoney.
  • Loading branch information
hammem committed Feb 17, 2024
1 parent f4ef3e8 commit caab30b
Show file tree
Hide file tree
Showing 3 changed files with 484 additions and 3 deletions.
6 changes: 3 additions & 3 deletions monarchmoney/monarchmoney.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pickle
import time
from datetime import datetime
from typing import Any, Dict, List, Optional
from typing import Any, Dict, List, Optional, Union

import oathtool
from aiohttp import ClientSession, FormData
Expand Down Expand Up @@ -1443,7 +1443,7 @@ async def delete_transaction_category(self, category_id: str) -> bool:

async def delete_transaction_categories(
self, category_ids: List[str]
) -> List[bool]:
) -> List[Union[bool, BaseException]]:
"""
Deletes a list of transaction categories.
"""
Expand Down Expand Up @@ -2242,7 +2242,7 @@ async def update_transaction(
"""
)

variables = {
variables: dict[str, Any] = {
"input": {
"id": transaction_id,
}
Expand Down
Loading

0 comments on commit caab30b

Please sign in to comment.