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

Merge pull request #12 from RGBCube/patch-1

fixes typing
This commit is contained in:
Var 2022-05-27 14:36:11 +05:30 committed by GitHub
commit 0a8b492edb
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:
return datetime.strptime(time_str, r"%Y-%m-%dT%H:%M:%SZ")