Use typing.List for compatibility with Python 3.6

This commit is contained in:
Ben Sturmfels 2023-01-12 14:09:05 +11:00
parent 71bf8137a5
commit 82ec68962a
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -256,7 +256,7 @@ def format_record(record: dict) -> str:
return output return output
def format_multirecord(r1s: list[dict], r2s: list[dict], note: str) -> list[list]: def format_multirecord(r1s: List[dict], r2s: List[dict], note: str) -> List[list]:
"""Generates output lines for one statement:multiple books transaction match.""" """Generates output lines for one statement:multiple books transaction match."""
assert len(r1s) == 1 assert len(r1s) == 1
assert len(r2s) > 1 assert len(r2s) > 1