Skip to content

Conversation

@alexfikl
Copy link
Contributor

This should fix things like _Expression showing up in inducer/pymbolic#197 and some needlessly qualified names in inducer/pytential#271.

node.attributes["reftype"] = reftype
node.attributes[f"{domain}:module"] = module

if isinstance(contnode, Text):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added an else: breakpoint() here to check if this is ever not a Text and it doesn't seem to be the case.

I initially used TextElement because that's what the signature of domain.resolve_xref asked for below, but that seems to be a bug in the type annotations there.

@inducer
Copy link
Owner

inducer commented Aug 18, 2025

Thx!

@inducer inducer merged commit 90c8316 into inducer:main Aug 18, 2025
2 checks passed
@alexfikl alexfikl deleted the improve-missing-text branch August 18, 2025 13:58
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.

2 participants