Skip to content

Commit

Permalink
only use tomli in python<3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
KotlinIsland committed Oct 25, 2022
1 parent 6924b81 commit 4fba16a
Show file tree
Hide file tree
Showing 4 changed files with 377 additions and 296 deletions.
5 changes: 4 additions & 1 deletion poethepoet/config.py
@@ -1,6 +1,9 @@
import json
from pathlib import Path
import tomli
try:
import tomllib as tomli
except ImportError:
import tomli
from typing import Any, Dict, Mapping, Optional, Sequence, Tuple, Union
from .exceptions import PoeException

Expand Down

0 comments on commit 4fba16a

Please sign in to comment.