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 Nov 3, 2022
1 parent 6924b81 commit 5c0fe64
Show file tree
Hide file tree
Showing 4 changed files with 374 additions and 295 deletions.
6 changes: 5 additions & 1 deletion poethepoet/config.py
@@ -1,6 +1,10 @@
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 5c0fe64

Please sign in to comment.