mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-02-07 01:34:21 +01:00
mypy
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import time
|
||||
from distutils.command.build_scripts import first_line_re
|
||||
from re import S
|
||||
from typing import List
|
||||
|
||||
import pytest
|
||||
import pytest_asyncio
|
||||
|
||||
from typing import List
|
||||
from cashu.core.base import Proof
|
||||
from cashu.core.helpers import async_unwrap, sum_proofs
|
||||
from cashu.core.migrations import migrate_databases
|
||||
@@ -27,9 +25,9 @@ async def assert_err(f, msg):
|
||||
)
|
||||
|
||||
|
||||
def assert_amt(proofs, expected):
|
||||
def assert_amt(proofs: List[Proof], expected: int):
|
||||
"""Assert amounts the proofs contain."""
|
||||
assert [p["amount"] for p in proofs] == expected
|
||||
assert [p.amount for p in proofs] == expected
|
||||
|
||||
|
||||
@pytest_asyncio.fixture(scope="function")
|
||||
|
||||
Reference in New Issue
Block a user