def query(self, url: str) -> JsonValue:
    'Launches a Github API query and returns the result.'
    headers = {}
    if self._token:
        headers['Authorization'] = f'token {self._token}'
    resp = requests.get(url, headers=headers)
    if (resp.status_code != 200):
        raise FileNotFoundError(f'''Request failed:
 Request: {url}
 Error: {resp.status_code}
 Reason: {resp.content}''')
    return resp.json()
Launches a Github API query and returns the result.
def query(self, url: str) -> JsonValue:
    
    headers = {}
    if self._token:
        headers['Authorization'] = f'token {self._token}'
    resp = requests.get(url, headers=headers)
    if (resp.status_code != 200):
        raise FileNotFoundError(f'Request failed:
 Request: {url}
 Error: {resp.status_code}
 Reason: {resp.content}')
    return resp.json()