From f56a2aef4f418c0a8d178a1df84c71b6b8fceac0 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Tue, 16 Dec 2025 16:56:55 -0800 Subject: [PATCH] tweaking generics for <3.10 support --- pycmx/cdl.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pycmx/cdl.py b/pycmx/cdl.py index 70be8ef..514a158 100644 --- a/pycmx/cdl.py +++ b/pycmx/cdl.py @@ -1,18 +1,19 @@ # pycmx # (c) 2025 Jamie Hardt +from dataclasses import dataclass from typing import Generic, NamedTuple, TypeVar T = TypeVar('T') - -class Rgb(NamedTuple, Generic[T]): +@dataclass +class Rgb(Generic[T]): red: T green: T blue: T - -class AscSopComponents(NamedTuple, Generic[T]): +@dataclass +class AscSopComponents(Generic[T]): """ Fields in an ASC SOP (Slope-Offset-Power) color transfer function statement