From 5b075f9c96766e239f1fd5f7424cbef2586514ae Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Sat, 19 Aug 2023 18:18:26 -0700 Subject: [PATCH] chore: add type-hints to `imapclient/version.py` Related to #463 --- imapclient/version.py | 4 +++- pyproject.toml | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/imapclient/version.py b/imapclient/version.py index 33df0adb..ee49a304 100644 --- a/imapclient/version.py +++ b/imapclient/version.py @@ -2,10 +2,12 @@ # Released subject to the New BSD License # Please see http://en.wikipedia.org/wiki/BSD_licenses +from typing import Tuple + version_info = (2, 3, 1, "final") -def _imapclient_version_string(vinfo): +def _imapclient_version_string(vinfo: Tuple[int, int, int, str]) -> str: major, minor, micro, releaselevel = vinfo v = "%d.%d.%d" % (major, minor, micro) if releaselevel != "final": diff --git a/pyproject.toml b/pyproject.toml index a0f54775..deb8b238 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,6 @@ module = [ "imapclient.testable_imapclient", "imapclient.tls", "imapclient.util", - "imapclient.version", "interact", "livetest", "setup",