
from __future__ import annotations

import os
from typing import Any

import requests

__lowerCAmelCase    :	str						=						"""https://api.github.com"""

# https://docs.github.com/en/free-pro-team@latest/rest/reference/users#get-the-authenticated-user
__lowerCAmelCase    :	Optional[int]						=						BASE_URL + """/user"""

# https://github.com/settings/tokens
__lowerCAmelCase    :	Optional[Any]						=						os.environ.get("USER_TOKEN", "")


def 			UpperCAmelCase_     (  __lowerCAmelCase		)       ->  Optional[int]:
    __lowercase						:	Tuple					=				{
        "Authorization": F'token {auth_token}',
        "Accept": "application/vnd.github.v3+json",
    }
    return requests.get(__lowerCAmelCase		,    headers=__lowerCAmelCase		).json()


if __name__ == "__main__":  # pragma: no cover
 if USER_TOKEN:
  for key, value in fetch_github_info(USER_TOKEN).items():
   print(F'{key}: {value}')
 else:
  raise ValueError("'USER_TOKEN' field cannot be empty.")









def      _A       (		SCREAMING_SNAKE_CASE     :   list						):





  """simple docstring"""



  if not isinstance(SCREAMING_SNAKE_CASE       ,       SCREAMING_SNAKE_CASE						):
    raise ValueError("Input series is not valid, valid series - [2, 4, 6]"						)
  if len(SCREAMING_SNAKE_CASE						) == 0:
    raise ValueError("Input list must be a non empty list"						)
  if len(SCREAMING_SNAKE_CASE						) == 1:
    return True
  a__	:					Union[str, Any]										=series[1] - series[0]
  for index in range(len(SCREAMING_SNAKE_CASE						) - 1						):
    if series[index + 1] - series[index] != common_diff:
      return False
  return True
def      _A       (		SCREAMING_SNAKE_CASE     :   list						):





  """simple docstring"""



  if not isinstance(SCREAMING_SNAKE_CASE       ,       SCREAMING_SNAKE_CASE						):
    raise ValueError("Input series is not valid, valid series - [2, 4, 6]"						)
  if len(SCREAMING_SNAKE_CASE						) == 0:
    raise ValueError("Input list must be a non empty list"						)
  a__	:					Any										=0
  for val in series:
    answer += val
  return answer / len(SCREAMING_SNAKE_CASE						)


if __name__ == "__main__":
     import doctest

     doctest.testmod()






