Skip to content

Conversation

@msullivan
Copy link
Member

Work on #635

# XXX: should we do this with enum literals?
# maybe not, strings will get constant extracted...
return _qb.CastOp(
expr=_qb.StringLiteral(val=str(self)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can just use _qb.Literal(val=self, type=...) here?

_expressions.Literal.__edgeql_expr__ already includes a cast.

@msullivan msullivan merged commit 06d8a21 into master Sep 29, 2025
43 checks passed
@msullivan msullivan deleted the enums branch September 29, 2025 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants