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) (#82)
  • Loading branch information
moritzj29 authored Jan 8, 2023
1 parent 44549e0 commit aabfa12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions finance_dl/waveapps.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def CONFIG_waveapps():
"""

from typing import List, Any
from typing import List, Any, Optional
import contextlib
import logging
import json
Expand Down Expand Up @@ -154,7 +154,7 @@ def get_receipts(self, business_id: str):
receipts.extend(cur_list)
return receipts

def save_receipts(self, receipts: List[Any], output_directory: str = None):
def save_receipts(self, receipts: List[Any], output_directory: Optional[str] = None):
if not output_directory:
output_directory = self.output_directory
if not os.path.exists(output_directory):
Expand Down

0 comments on commit aabfa12

Please sign in to comment.