From 1ee3e476f31be15e73cb629e3acd73c16394dc90 Mon Sep 17 00:00:00 2001 From: Eklavya Sharma Date: Wed, 1 Feb 2017 12:38:36 +0530 Subject: [PATCH] Change True to 'True' in requests.get params. According to stubs from mypy 0.4.7 onwards, `requests.get` takes a parameter `params` of type `Dict[AnyStr, AnyStr]` where `AnyStr` can be either bytes or text. Actually, requests can accept values of other types in dicts too but it casts them to a string type. So to avoid type checking error messages, change `True` to `'True'`. --- integrations/codebase/zulip_codebase_mirror | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/codebase/zulip_codebase_mirror b/integrations/codebase/zulip_codebase_mirror index 3ab2e12..4cad0c4 100755 --- a/integrations/codebase/zulip_codebase_mirror +++ b/integrations/codebase/zulip_codebase_mirror @@ -77,7 +77,7 @@ def make_api_call(path): # type: (str) -> Optional[List[Dict[str, Any]]] response = requests.get("https://api3.codebasehq.com/%s" % (path,), auth=(config.CODEBASE_API_USERNAME, config.CODEBASE_API_KEY), - params={'raw': True}, + params={'raw': 'True'}, headers = {"User-Agent": user_agent, "Content-Type": "application/json", "Accept": "application/json"})