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 4, 2022
1 parent 6924b81 commit 7a85214
Show file tree
Hide file tree
Showing 3 changed files with 373 additions and 294 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 7a85214

Please sign in to comment.