diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ee14fc430f1b..2e8e1a47099f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: types: [python] entry: ./scripts/run_mypy.sh - repo: https://github.com/netromdk/vermin - rev: v1.4.2 + rev: v1.5.1 hooks: - id: vermin args: ['-t=3.6-', '--violations'] diff --git a/src/bindings/python/flux/util.py b/src/bindings/python/flux/util.py index 2ca305c8d740..f753f5e2a910 100644 --- a/src/bindings/python/flux/util.py +++ b/src/bindings/python/flux/util.py @@ -30,8 +30,10 @@ import yaml +# tomllib added to standard library in Python 3.11 +# flux-core minimum is Python 3.6. try: - import tomllib + import tomllib # novermin except ModuleNotFoundError: from flux.utils import tomli as tomllib