Skip to content

Treat any IntEnum as an enum in struct and perspective conversions - #778

Merged
timkpaine merged 1 commit into
mainfrom
tkp/intenum-checks
Oct 16, 2026
Merged

timkpaine merged 1 commit into
mainfrom
tkp/intenum-checks

Conversation

@timkpaine

Copy link
Copy Markdown
Member

Since IntEnum became a native csp type, structs and time series can hold IntEnum types that are not csp.Enum subclasses. Check for IntEnum instead of csp.Enum in Struct._obj_to_python and the perspective adapter schema so those types are converted to names like csp.Enum.

Since IntEnum became a native csp type, structs and time series can hold IntEnum types that are not csp.Enum subclasses. Check for IntEnum instead of csp.Enum in Struct._obj_to_python and the perspective adapter schema so those types are converted to names like csp.Enum.

Signed-off-by: Tim Paine <[email protected]>
@timkpaine timkpaine added the type: bug Concrete, reproducible bugs label Oct 15, 2026
@timkpaine
timkpaine merged commit c7d0ade into main Oct 16, 2026
31 checks passed
@timkpaine
timkpaine deleted the tkp/intenum-checks branch October 16, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Concrete, reproducible bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants