Skip to content

Commit

Permalink
Turn base Dimensions into typing.NamedTuple subclass
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinHeist committed Oct 19, 2023
1 parent f5ae21c commit 8abb669
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions modules/ImageMagickInterface.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
from collections import namedtuple
from logging import Logger
from pathlib import Path
from shlex import split as command_split
from subprocess import Popen, PIPE, TimeoutExpired
from typing import Literal, Optional
from typing import Literal, NamedTuple, Optional

from imagesize import get as im_get

from modules.Debug import log


Dimensions = namedtuple('Dimensions', ('width', 'height'))
class Dimensions(NamedTuple):
width: float
height: float


class ImageMagickInterface:
Expand Down
2 changes: 1 addition & 1 deletion modules/ref/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.14.4-develop35
v1.14.4-develop36

0 comments on commit 8abb669

Please sign in to comment.