Skip to content

Instantly share code, notes, and snippets.

@yothinix
Created March 1, 2018 09:55
Show Gist options
  • Save yothinix/23857967694d77420fb369377a5e2450 to your computer and use it in GitHub Desktop.
Save yothinix/23857967694d77420fb369377a5e2450 to your computer and use it in GitHub Desktop.
function_without_type_2.py
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