Skip to content

Commit

Permalink
fix mypy errors of implicit optional arguments (change of default myp…
Browse files Browse the repository at this point in the history
…y option according to PEP484) (jbms#182)
  • Loading branch information
moritzj29 authored Jan 7, 2023
1 parent afd3093 commit 07a2afb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions beancount_import/source/amazon.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,8 @@ def __init__(self,
directory: str,
amazon_account: str,
posttax_adjustment_accounts: Dict[str, str] = {},
pickle_dir: str = None,
earliest_date: datetime.date = None,
pickle_dir: Optional[str] = None,
earliest_date: Optional[datetime.date] = None,
locale='en_US',
**kwargs) -> None:
super().__init__(**kwargs)
Expand Down
2 changes: 1 addition & 1 deletion beancount_import/source/paypal.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def __init__(self,
assets_account: str,
fee_account: str,
prefix: str,
earliest_date: datetime.date = None,
earliest_date: Optional[datetime.date] = None,
locale: str='en_US',
**kwargs) -> None:
super().__init__(link_prefix=prefix + '.', **kwargs)
Expand Down

0 comments on commit 07a2afb

Please sign in to comment.