data: Type declare that Posting.meta is a PostingMeta.

This is necessary for users to call PostingMeta properties like date
as intended.
This commit is contained in:
Brett Smith 2020-04-27 16:44:06 -04:00
parent d01df054ab
commit d3415a8721

View file

@ -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,