Skip to content

Fix passing type intersections to overloaded functions.#955

Merged
dnwpark merged 3 commits intomasterfrom
anytype-type-intersection
Oct 29, 2025
Merged

Fix passing type intersections to overloaded functions.#955
dnwpark merged 3 commits intomasterfrom
anytype-type-intersection

Conversation

@dnwpark
Copy link
Copy Markdown
Contributor

@dnwpark dnwpark commented Oct 23, 2025

Fixes queries such as std.distinct(default.Foo.is_(default.Bar))

@dnwpark dnwpark marked this pull request as ready for review October 23, 2025 22:26
@dnwpark dnwpark requested review from elprans and msullivan October 23, 2025 22:26
Comment thread gel/_internal/_typing_dispatch.py Outdated
from gel._internal import _typing_inspect
from gel._internal import _typing_parametric
from gel._internal._utils import type_repr
from gel._internal._qbmodel._abstract._methods import BaseGelModelIntersection
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could we maybe put some base class for BaseGelModelIntersection in a sibling to _typing_dispatch, instead of adding an import into the bowels of the qbmodel from this otherwise pretty generic code?

@dnwpark dnwpark force-pushed the anytype-type-intersection branch from 0553a84 to aeaea2d Compare October 29, 2025 17:00
@dnwpark dnwpark merged commit e520d9a into master Oct 29, 2025
43 checks passed
@dnwpark dnwpark deleted the anytype-type-intersection branch October 29, 2025 17:42
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