1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-30 20:48:12 +00:00

fix typing

This commit is contained in:
RGBCube 2022-05-20 12:40:09 +03:00 committed by GitHub
parent 8c01855fff
commit 171421d9d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ __all__: Tuple[str, ...] = (
) )
def dt_formatter(time_str: str) -> Optional[datetime]: def dt_formatter(time_str: Optional[str]) -> Optional[datetime]:
if time_str is not None: if time_str is not None:
return datetime.strptime(time_str, r"%Y-%m-%dT%H:%M:%SZ") return datetime.strptime(time_str, r"%Y-%m-%dT%H:%M:%SZ")