Skip to content

Commit 2ae2519

Browse files
committed
v0.6.1
1 parent 7de532d commit 2ae2519

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

docs/reference/changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
0.6.1
4+
5+
* Typing errors in Python 3.9.
6+
37
0.6.0
48

59
* All currency values use decimal.Decimal.

docs/reference/development.md

+1
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,6 @@ Ref: [Digital Ocean](https://www.digitalocean.com/community/tutorials/how-to-pub
8383
* [ ] Run local tests and coverage.
8484
* [ ] Update coverage number in project `README.md`.
8585
* [ ] `git commit` and check that GitHub Action tests succeed.
86+
* [ ] `git tag -a v0.5.0 -m "v0.5.0"`
8687
* [ ] `poetry build`
8788
* [ ] `poetry publish`

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "beancount-multitool"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
description = "A CLI tool that converts financial data to Beancount files"
55
authors = ["Rick Lan <[email protected]>"]
66
license = "MIT"
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.6.0"
1+
__version__ = "0.6.1"

src/beancount_multitool/as_transaction.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from datetime import datetime
22
from decimal import Decimal
33
import sys
4+
from typing import Optional
45
import uuid
56

67

@@ -47,17 +48,17 @@ def add_uuid(*args, **kwargs):
4748
@reconcile
4849
@make_hashtags
4950
def as_transaction(
50-
date: datetime | None = None,
51+
date: Optional[datetime] = None,
5152
payee: str = "",
5253
narration: str = "",
53-
tags: list[str] | None = None,
54+
tags: Optional[list[str]] = None,
5455
source_account: str = "",
5556
account: str = "",
5657
amount: Decimal = Decimal(0),
5758
currency: str = "",
5859
flag: str = "",
59-
metadata: dict | None = None,
60-
account_metadata: dict | None = None,
60+
metadata: Optional[dict] = None,
61+
account_metadata: Optional[dict] = None,
6162
**kwargs,
6263
) -> str:
6364
"""

0 commit comments

Comments
 (0)