Created
March 1, 2018 09:55
-
-
Save yothinix/23857967694d77420fb369377a5e2450 to your computer and use it in GitHub Desktop.
function_without_type_2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Dict, Tuple | |
import requests | |
def make_request(url: str, data: Dict[str, str], headers: Dict[str, str]) -> Tuple[int, str]: | |
res = requests.post(url, data, headers=headers) | |
return res.status_code, res.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment