binaryai / sdk

Get results of binaryai.cn using our SDK
https://www.binaryai.cn/doc/
GNU General Public License v3.0
491 stars 75 forks source link

fix expected type for dict( ) in the lambda map, expects a tuple not a list #2

Closed marcograss closed 4 years ago

marcograss commented 4 years ago

fix expected type for dict( ) in the lambda map, expects a tuple not a list

the type checking error of mypy (python static analysis) was as follow

binaryai/ida.py:13: error: Argument 1 to "dict" has incompatible type "Iterator[List[Any]]"; expected "Iterable[Tuple[<nothing>, <nothing>]]"

it was working before also but tuple is the correct expected type