Skip to content

Commit 4a423a7

Browse files
author
patryk
committed
Update mypy
1 parent 21428e8 commit 4a423a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jdiff/extract_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Extract data from JSON. Based on custom JMSPath implementation."""
22
import re
33
import warnings
4-
from typing import Mapping, List, Dict, Any, Union
4+
from typing import Mapping, List, Dict, Any, Union, Optional
55
import jmespath
66
from .utils.data_normalization import exclude_filter, flatten_list
77
from .utils.jmespath_parsers import (
@@ -12,7 +12,7 @@
1212
)
1313

1414

15-
def extract_data_from_json(data: Union[Mapping, List], path: str = "*", exclude: List = None) -> Any:
15+
def extract_data_from_json(data: Union[Mapping, List], path: str = "*", exclude: Optional[List] = None) -> Any:
1616
"""Return wanted data from outpdevice data based on the check path. See unit test for complete example.
1717
1818
Get the wanted values to be evaluated if JMESPath expression is defined,

0 commit comments

Comments
 (0)