Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
matusdrobuliak66 committed Dec 17, 2024
1 parent 8b41ebf commit de312d3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,4 @@ async def get_currently_used_seats_for_item_and_wallet(
row = result.first()
if row is None or row[0] is None:
return 0
return row[0]
return int(row[0])
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,4 @@ async def get_active_purchased_seats_for_item_and_wallet(
row = result.first()
if row is None or row[0] is None:
return 0
return row[0]
return int(row[0])
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
from models_library.licensed_items import LicensedItemID
from models_library.products import ProductName
from models_library.resource_tracker import ServiceRunId
from models_library.resource_tracker_licensed_items_checkouts import (
LicensedItemCheckoutID,
)
from models_library.users import UserID
from models_library.wallets import WalletID
from servicelib.rabbitmq.rpc_interfaces.resource_usage_tracker import (
Expand Down Expand Up @@ -68,7 +71,7 @@ async def release_licensed_item_for_wallet(
app: web.Application,
product_name: ProductName,
user_id: UserID,
licensed_item_checkout_id: rut_licensed_items_checkouts.LicensedItemCheckoutID,
licensed_item_checkout_id: LicensedItemCheckoutID,
) -> webserver_licensed_items_checkouts.LicensedItemCheckoutGet:
rpc_client = get_rabbitmq_rpc_client(app)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# pylint: disable=unused-argument
# pylint: disable=unused-variable

from collections.abc import Iterable
from pathlib import Path
from typing import Iterable

Expand Down

0 comments on commit de312d3

Please sign in to comment.