Skip to content

Commit ccda90c

Browse files
committed
fix runtime access to types
1 parent af9e3bf commit ccda90c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

core/config.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,15 @@
1616
along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
"""
1818

19+
from __future__ import annotations
20+
21+
from typing import TYPE_CHECKING
22+
1923
import tomllib
2024

21-
from types_.config import Config
25+
26+
if TYPE_CHECKING:
27+
from types_.config import Config
2228

2329

2430
__all__ = ("CONFIG",)

0 commit comments

Comments
 (0)