From 171421d9d3c65145f0eba4c2dd4ab0af4692b333 Mon Sep 17 00:00:00 2001 From: RGBCube <78925721+RGBCube@users.noreply.github.com> Date: Fri, 20 May 2022 12:40:09 +0300 Subject: [PATCH] fix typing --- github/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/objects.py b/github/objects.py index 7fa6e37..a70f71d 100644 --- a/github/objects.py +++ b/github/objects.py @@ -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")