Open mschoettle opened 2 years ago
Hi @mschoettle, thank you for the report.
Would you like to send a pull request? An alternative is that you try the new handler, which does not suffer from this kind of introspection issues, but also doesn't have special support for Django either (yet). See https://mkdocstrings.github.io/handlers/overview/#about-the-python-handlers
I should be able to send a PR. Long-term I would like to move to the new handler but currently we are using the Django support. Let me know if there is anything that can be contributed for that in the new handler.
I had started a prototype for a Django extension, but it didn't take the right approach I think. Let me retry now that the code is a bit more mature.
Describe the bug
I use
mkdocstrings
and have a Django project where I started usingfactory-boy
. Once I added a factory class (sub-class offactory.django.DjangoModelFactory
) the following error occurs:To Reproduce
Creating a factory class for Django's user model should be sufficient:
Expected behavior
Not sure if it is a bug in retrieving information from the class. I think simply ignoring should be sufficient.
System (please complete the following information):
pytkdocs
version: 0.16.0Additional context
I was able to workaround this problem by ensuring that the attr exists: