-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model detection fails for Ellipsis
#124
Comments
Hi @sasanjac, sorry for the slow response here. I was able to reproduce your error with a model like this:
Can you confirm if this covers the kinds of annotations you're using with ellipsis, or do you have other kinds of examples? |
The fix for this has been released in v1.0.5. Please let me know whether or not this resolves your errors! |
Thanks for the notice. We will check this. I have one addtional question, you may could answer: Asumming a pydantic class structure, is it possible to exclude classes? I know its possible to definde end-points via terminal_models, but in our case each class have an attribute of type "AttributeData", which we want to disable when drawing the diagram. |
I made a separate issue to address the question about exclusions. |
In
core.py
, only forms that don't have a__qualname__
attribute are not considered models:However, e.g. when using ellipsis for type annotations, the error is as follows:
AttributeError: 'ellipsis' object has no attribute '__module__'. Did you mean: '__reduce__'?
Maybe consider checking for more terms in the error message in order to catch non-modules?
The text was updated successfully, but these errors were encountered: