We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5e97c9 commit 6563fb9Copy full SHA for 6563fb9
.ci/scripts/check_click_for_mypy.py
@@ -1,9 +1,12 @@
1
#!/bin/env python3
2
3
-import click
+from importlib.metadata import version
4
+
5
from packaging.version import parse
6
-if parse(click.__version__) < parse("8.1.1") or parse(click.__version__) >= parse("8.2"):
7
+click_version = version("click")
8
9
+if parse(click_version) < parse("8.1.1") or parse(click_version) >= parse("8.2"):
10
print("🚧 Linting with mypy is currently only supported with click~=8.1.1. 🚧")
11
print("🔧 Please run `pip install click~=8.1.1` first. 🔨")
12
exit(1)
0 commit comments