From 31f609eefe395113ad447b62146826e8921feab0 Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Fri, 3 Jan 2025 10:03:01 +0300 Subject: [PATCH] Reformat imports --- src/gourmand/prefs.py | 9 ++++----- tests/test_prefs.py | 8 ++++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/gourmand/prefs.py b/src/gourmand/prefs.py index d662119a..3b0804b6 100644 --- a/src/gourmand/prefs.py +++ b/src/gourmand/prefs.py @@ -3,13 +3,12 @@ from pathlib import Path from typing import Any, Optional - if sys.version_info >= (3, 11): - import tomllib.load as tom_load - import tomli_w.dump as tom_dump + from tomllib import load as tom_load + from tomli_w import dump as tom_dump else: - import tomli.load as tom_load - import tomli.dump as tom_dump + from tomli import load as tom_load + from tomli import dump as tom_dump from gourmand.gglobals import gourmanddir diff --git a/tests/test_prefs.py b/tests/test_prefs.py index a8ebfd4f..9dd5366b 100644 --- a/tests/test_prefs.py +++ b/tests/test_prefs.py @@ -2,11 +2,11 @@ import sys if sys.version_info >= (3, 11): - import tomllib.load as tom_load - import tomli_w.dump as tom_dump + from tomllib import load as tom_load + from tomli_w import dump as tom_dump else: - import tomli.load as tom_load - import tomli.dump as tom_dump + from tomli import load as tom_load + from tomli import dump as tom_dump from pathlib import Path