summaryrefslogtreecommitdiff
path: root/tests/test_numversion.py
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-09-09 15:06:13 +0200
committerGitHub <noreply@github.com>2022-09-09 15:06:13 +0200
commit6524ba540cbfc4f11e924925faebe7e21f87942e (patch)
tree651c092d18df42eb18d0c066e5af8b996e0c46c7 /tests/test_numversion.py
parent2b6bd64d43ed109b1ee15f0993c010660cf56b13 (diff)
downloadpylint-git-6524ba540cbfc4f11e924925faebe7e21f87942e.tar.gz
Finish unfinished typing in non core directories (#7443)
* Add typing to setup calls in documentation folder * Finish some incomplete typing signatures in script * Add typing to unfinished signatures in the tests directory
Diffstat (limited to 'tests/test_numversion.py')
-rw-r--r--tests/test_numversion.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_numversion.py b/tests/test_numversion.py
index 1bfb451da..2c34c1aa3 100644
--- a/tests/test_numversion.py
+++ b/tests/test_numversion.py
@@ -2,6 +2,8 @@
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt
+from __future__ import annotations
+
import pytest
from pylint.__pkginfo__ import get_numversion_from_version
@@ -23,5 +25,5 @@ from pylint.__pkginfo__ import get_numversion_from_version
["2.8.3.dev3+g28c093c2.d20210428", (2, 8, 3)],
],
)
-def test_numversion(version, expected_numversion):
+def test_numversion(version: str, expected_numversion: tuple[int, int, int]) -> None:
assert get_numversion_from_version(version) == expected_numversion