Skip to content

Commit

Permalink
fix: correct type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Dec 3, 2024
1 parent b51cdae commit 70adf18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weblate_web/legal/management/commands/generate_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from django.template.loader import render_to_string
from ruamel.yaml import YAML

from weblate_web.invoices.models import BANK_ACCOUNTS
from weblate_web.invoices.models import BANK_ACCOUNTS, BankAccountInfo
from weblate_web.pdf import render_pdf


Expand Down Expand Up @@ -55,7 +55,7 @@ def handle(self, document: Path, params: Path, output: Path, **kwargs):
configuration = yaml.load(document)
template = document.with_suffix(".html")

context: dict[str, str] = {
context: dict[str, str | dict[str, BankAccountInfo]] = {
"title": configuration["title"],
"bank_accounts": {
currency.label: bank for currency, bank in BANK_ACCOUNTS.items()
Expand Down

0 comments on commit 70adf18

Please sign in to comment.