Skip to content

Commit

Permalink
chore: fix toml imports with extra requires
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Jan 8, 2024
1 parent 82f8f1f commit 634a488
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion providers/toml/hooks/tomls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import os
from typing import Union

import tomli as toml
try:
import tomllib as toml
except ImportError:
import tomli as toml

from tackle import BaseHook, Field

Expand Down
2 changes: 2 additions & 0 deletions providers/toml/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# this is temporary - py3.11 has this included
tomli

0 comments on commit 634a488

Please sign in to comment.