Skip to content

Commit

Permalink
Change True to 'True' in requests.get params.
Browse files Browse the repository at this point in the history
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'`.
  • Loading branch information
sharmaeklavya2 authored and timabbott committed Feb 7, 2017
1 parent ba5f454 commit de6884c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/integrations/codebase/zulip_codebase_mirror
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand Down

0 comments on commit de6884c

Please sign in to comment.