Skip to content

Conversation

@mmahrouss
Copy link
Collaborator

We are trying to do that by checking _register = False.
The check was failing because we handled only one evaluation.
However, in latest versions we also have a type hint, which is its own evaluation.
For that, we implement here a smarter search that only looks are evaluations with values.
In that case, we should be more generic in catching cases.

For later: Consider using this as the check, instead of checking symbol trees

@mmahrouss mmahrouss self-assigned this Dec 11, 2025
@mmahrouss mmahrouss added the bug Something isn't working label Dec 11, 2025
@mmahrouss mmahrouss changed the title [FIX] correctly identify abstract classes [FIX] correctly identify non-registry model classes Dec 11, 2025
@mmahrouss mmahrouss force-pushed the alpha-correctly-detect-abstract-models-mdms branch 2 times, most recently from 9b98bb3 to 911398a Compare December 11, 2025 15:49
We are trying to do that by checking _register = False.
The check was failing because we handled only one evaluation.
However, in latest versions we also have a type hint, which is its own evaluation.
For that, we implement here a smarter search that only looks are evaluations with values.
In that case, we should be more generic in catching cases.
Consider using this as the check, instead of checking symbol trees
@mmahrouss mmahrouss force-pushed the alpha-correctly-detect-abstract-models-mdms branch from 911398a to c5b999d Compare December 11, 2025 15:52
Copy link
Collaborator

@cammarosano cammarosano left a comment

Choose a reason for hiding this comment

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

Very nice!

@mmahrouss mmahrouss merged commit 56eb111 into alpha Dec 12, 2025
2 checks passed
@mmahrouss mmahrouss deleted the alpha-correctly-detect-abstract-models-mdms branch December 12, 2025 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants