Skip to content

Commit

Permalink
chore: add type-hints to imapclient/version.py
Browse files Browse the repository at this point in the history
Related to mjs#463
  • Loading branch information
JohnVillalovos committed Aug 20, 2023
1 parent 92ae49a commit 5b075f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion imapclient/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ module = [
"imapclient.testable_imapclient",
"imapclient.tls",
"imapclient.util",
"imapclient.version",
"interact",
"livetest",
"setup",
Expand Down

0 comments on commit 5b075f9

Please sign in to comment.