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")