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
...
 
@@ -272,7 +272,7 @@ class Posting(BasePosting):
 
    # declaration should also use MutableMapping, because it would be very
 
    # 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
 
    def from_beancount(cls,
0 comments (0 inline, 0 general)