22 lines
452 B
Python
22 lines
452 B
Python
# encoding: utf-8
|
|
"""
|
|
For readability, all nodes in this node pack return NamedTuples instead of regular tuples.
|
|
"""
|
|
|
|
import typing as _t
|
|
|
|
class ResultSimple(_t.NamedTuple):
|
|
"""Returned NamedTuple for simple (non-upscale) nodes."""
|
|
width: int
|
|
height: int
|
|
|
|
|
|
class ResultUpscaled(_t.NamedTuple):
|
|
"""Returned NamedTuple for nodes with upscaling."""
|
|
upscale: float
|
|
orig_width: int
|
|
orig_height: int
|
|
up_width: int
|
|
up_height: int
|
|
needs_resize: bool
|