From b66906abec5606d62e93df8c6083cf8c37e44e12 Mon Sep 17 00:00:00 2001 From: Elliot <3186037+elliot-100@users.noreply.github.com> Date: Sat, 20 Apr 2024 16:38:55 +0100 Subject: [PATCH] Don't need to import `datetime.datetime` unless type-checking --- spond/spond.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spond/spond.py b/spond/spond.py index 57da70f..ade0c0b 100644 --- a/spond/spond.py +++ b/spond/spond.py @@ -1,10 +1,13 @@ #!/usr/bin/env python3 from __future__ import annotations -from datetime import datetime +from typing import TYPE_CHECKING import aiohttp +if TYPE_CHECKING: + from datetime import datetime + class AuthenticationError(Exception): pass