From 33140dccbbe8cbfd443f9cd9c877d7e338caa245 Mon Sep 17 00:00:00 2001 From: ByteOtter Date: Tue, 1 Aug 2023 21:58:46 +0200 Subject: [PATCH] Fix unresolvable toml import --- src/nester/core/opinionated/opinionated_creation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nester/core/opinionated/opinionated_creation.py b/src/nester/core/opinionated/opinionated_creation.py index 5ac659d..e9a3851 100644 --- a/src/nester/core/opinionated/opinionated_creation.py +++ b/src/nester/core/opinionated/opinionated_creation.py @@ -6,9 +6,13 @@ import subprocess from typing import Any -import toml import yaml +try: + import tomllib as toml +except ImportError: + import toml + from . import exceptions, supported_linters