Skip to content

Commit

Permalink
Reformat imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Benson Muite committed Jan 3, 2025
1 parent 23d6ef2 commit 31f609e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 4 additions & 5 deletions src/gourmand/prefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions tests/test_prefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 31f609e

Please sign in to comment.