Skip to content

Commit

Permalink
remove call to native tomllib because of missing features
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteOtter committed Aug 1, 2023
1 parent 33140dc commit 79e3be8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ install_requires =
click>=8.1.3
questionary>=1.10.0
pyyaml
toml; python_version<"3.11"
toml

[options.extras_require]
dev =
Expand Down
7 changes: 2 additions & 5 deletions src/nester/core/opinionated/opinionated_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@
import subprocess
from typing import Any

# If a version of the dump method comes available in python 3.11's native tomllib, add a import try except here.
import toml
import yaml

try:
import tomllib as toml
except ImportError:
import toml

from . import exceptions, supported_linters


Expand Down

0 comments on commit 79e3be8

Please sign in to comment.