Skip to content

Commit f0d7a8c

Browse files
committed
Remove unused typing
1 parent 5d7d13a commit f0d7a8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ctfcli/core/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Mapping, Union, Optional, List, Any, Tuple
1+
from typing import Mapping
22
from urllib.parse import urljoin
33

44
from requests import Session
@@ -53,7 +53,7 @@ def request(self, method, url, data=None, files=None, *args, **kwargs):
5353
# For files, the structure can be List[Tuple[str, Tuple[str, str, Optional[str]]]]
5454
# Example: [ ('file', ('doc.pdf', open('doc.pdf'), 'text/plain') ) ]
5555

56-
fields = list() # type: List[Tuple[str, Any]]
56+
fields = list()
5757
if isinstance(data, dict):
5858
# int are not allowed as value in MultipartEncoder
5959
fields = list(map(lambda v: (v[0], str(v[1]) if isinstance(v[1], int) else v[1]), data.items()))

0 commit comments

Comments
 (0)