Skip to content

Commit 3b9b6e3

Browse files
committed
python: add novermin comment to tomllib import
Problem: tomllib is included on Python 3.11 and newer versions and is loaded when available. This can cause a vermin check failure because the minimum required version for flux-core is 3.6. Add a "novermin" comment to pass the vermin check. Add a small comment to explain code as well.
1 parent 2045282 commit 3b9b6e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bindings/python/flux/util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@
3030

3131
import yaml
3232

33+
# tomllib added to standard library in Python 3.11
34+
# flux-core minimum is Python 3.6.
3335
try:
34-
import tomllib
36+
import tomllib # novermin
3537
except ModuleNotFoundError:
3638
from flux.utils import tomli as tomllib
3739

0 commit comments

Comments
 (0)