|
81 | 81 | sort_after, |
82 | 82 | with_meta, |
83 | 83 | ) |
84 | | -from tri_named_struct import ( |
85 | | - NamedStruct, |
86 | | - NamedStructField, |
87 | | -) |
88 | 84 | from tri_struct import ( |
89 | 85 | merged, |
90 | 86 | Struct, |
@@ -818,20 +814,20 @@ def __repr__(self): |
818 | 814 | return "<%s column=%s row=%s>" % (self.__class__.__name__, self.bound_column.declared_column, self.bound_row.row) # pragma: no cover |
819 | 815 |
|
820 | 816 |
|
821 | | -class TemplateConfig(NamedStruct): |
822 | | - template = NamedStructField() |
| 817 | +class TemplateConfig(Struct, RefinableObject): |
| 818 | + template: str = Refinable() |
823 | 819 |
|
824 | 820 |
|
825 | | -class HeaderConfig(NamedStruct): |
826 | | - attrs = NamedStructField() |
827 | | - template = NamedStructField() |
828 | | - extra = NamedStructField() |
| 821 | +class HeaderConfig(Struct, RefinableObject): |
| 822 | + attrs: Dict[str, Any] = Refinable() |
| 823 | + template: str = Refinable() |
| 824 | + extra: Dict[str, Any] = Refinable() |
829 | 825 |
|
830 | 826 |
|
831 | | -class RowConfig(NamedStruct): |
832 | | - attrs = NamedStructField() |
833 | | - template = NamedStructField() |
834 | | - extra = NamedStructField() |
| 827 | +class RowConfig(Struct, RefinableObject): |
| 828 | + attrs: Dict[str, Any] = Refinable() |
| 829 | + template: str = Refinable() |
| 830 | + extra: Dict[str, Any] = Refinable() |
835 | 831 |
|
836 | 832 |
|
837 | 833 | class Header(object): |
|
0 commit comments