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:
		
							parent
							
								
									d01df054ab
								
							
						
					
					
						commit
						d3415a8721
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -272,7 +272,7 @@ class Posting(BasePosting):
 | 
				
			||||||
    # declaration should also use MutableMapping, because it would be very
 | 
					    # declaration should also use MutableMapping, because it would be very
 | 
				
			||||||
    # unusual for code to specifically require a Dict over that.
 | 
					    # unusual for code to specifically require a Dict over that.
 | 
				
			||||||
    # If it did, this declaration would pass without issue.
 | 
					    # If it did, this declaration would pass without issue.
 | 
				
			||||||
    meta: Metadata  # type:ignore[assignment]
 | 
					    meta: PostingMeta  # type:ignore[assignment]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @classmethod
 | 
					    @classmethod
 | 
				
			||||||
    def from_beancount(cls,
 | 
					    def from_beancount(cls,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue