Skip to content

Commit

Permalink
Remove unnecessary typing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelad committed Dec 3, 2024
1 parent 880a611 commit 120647e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/monz/__main__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""Command line entrypoint for monz."""

import sys
from typing import List, Optional
from typing import Optional

from monz.command_line import cli


def main(args: Optional[List[str]] = None) -> None:
def main(args: Optional[list[str]] = None) -> None:
"""Run `monz`.
Arguments:
Expand Down
4 changes: 2 additions & 2 deletions src/monz/command_line.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""monz command line interface."""

from datetime import datetime, timedelta
from typing import List, Optional
from typing import Optional

import click
import rich_click
Expand Down Expand Up @@ -216,7 +216,7 @@ def transactions(monzo_api: MonzoAPI, account_id: Optional[str], num: int) -> No
# By default, the API returns transactions from the last 30 days (I think).
# Because of that, query the api with an increasing `since` parameter until we
# get the desired number of transactions.
monzo_transactions: List[MonzoTransaction] = []
monzo_transactions: list[MonzoTransaction] = []
n = 0
while len(monzo_transactions) < num:
n += 1
Expand Down

0 comments on commit 120647e

Please sign in to comment.