|
created_at: datetime |
|
updated_at: datetime |
While these values are parsed to datetimes, they don't come from the API as a datetime. This causes typing issues when using the raw dictionaries rather than the parsed classes.
example:
resp = github.rest.users.async_get_by_username(username)
user_data = resp.json()
reveal_type(user_data['created_at']] # revealed to be a datetime
assert isinstance(user_data['created_at'], datetime) # will return false