Skip to content

Commit

Permalink
Order imports
Browse files Browse the repository at this point in the history
  • Loading branch information
syntaxaire committed Aug 3, 2022
1 parent b77da51 commit 6c9fa38
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion hagadias/gameroot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
import time
from pathlib import Path

from lxml import etree as et

from hagadias.character_codes import read_gamedata
from hagadias.helpers import get_dll_version_string, repair_invalid_linebreaks, repair_invalid_chars
from hagadias.qudobject_props import QudObjectProps
from hagadias.qudpopulation import QudPopulation
from lxml import etree as et

log = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion hagadias/qudobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
from typing import Tuple, List

from anytree import NodeMixin
from lxml import etree

from hagadias.qudtile import QudTile
from hagadias.tileanimator import TileAnimator, StandInTiles
from hagadias.tilepainter import TilePainter
from lxml import etree


class QudObject(NodeMixin):
Expand Down
4 changes: 2 additions & 2 deletions hagadias/qudobject_props.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
CHERUBIM_DESC,
MECHANICAL_CHERUBIM_DESC,
)
from hagadias.dicebag import DiceBag
from hagadias.helpers import (
cp437_to_unicode,
int_or_none,
Expand All @@ -33,9 +34,8 @@
float_or_none,
float_or_default,
)
from hagadias.qudpopulation import QudPopulation
from hagadias.dicebag import DiceBag
from hagadias.qudobject import QudObject
from hagadias.qudpopulation import QudPopulation
from hagadias.svalue import sValue

log = logging.getLogger(__name__)
Expand Down
1 change: 1 addition & 0 deletions hagadias/qudpopulation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Classes to represent population data from PopulationTables.xml."""
from typing import List

from lxml import etree as et
from lxml.etree import ElementBase

Expand Down
1 change: 1 addition & 0 deletions hagadias/tileanimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import random
from io import BytesIO
from typing import List, Callable

from PIL import Image, ImageSequence

from hagadias.helpers import (
Expand Down
4 changes: 2 additions & 2 deletions hagadias/tileanimator_creategif.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
# using PIL.Image.save(). This code works around the issue and allows us to properly generate
# transparent GIFs.

from typing import Tuple, List
from collections import defaultdict
from random import randrange
from itertools import chain
from random import randrange
from typing import Tuple, List

from PIL.Image import Image

Expand Down
1 change: 1 addition & 0 deletions hagadias/tilestyle.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import annotations # allow forward type references

import itertools
import os
import random
Expand Down

0 comments on commit 6c9fa38

Please sign in to comment.