Changeset - d3415a8721c3
[Not reviewed]
0 1 0
Brett Smith - 4 years ago 2020-04-27 20:44:06
brettcsmith@brettcsmith.org
data: Type declare that Posting.meta is a PostingMeta.

This is necessary for users to call PostingMeta properties like date
as intended.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
conservancy_beancount/data.py
Show inline comments
...
 
@@ -273,5 +273,5 @@ class Posting(BasePosting):
 
    # unusual for code to specifically require a Dict over that.
 
    # If it did, this declaration would pass without issue.
 
    meta: Metadata  # type:ignore[assignment]
 
    meta: PostingMeta  # type:ignore[assignment]
 

	
 
    @classmethod
0 comments (0 inline, 0 general)