Support for custom mro
?
#6593
Unanswered
ArthurZucker
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Transferring to a question. I don't believe what you want to do is possible, but somebody else might have other ideas. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! Heavy
pylance
user 🚀Working on some automatic documentation in
transformers
, and having a few issues as we kinda want to have pseudo dynamic docstring (they are based on the signature, but the documented arguments are all in a big dictionary).I have absolutely no idea how to circumvent this, so realized the simplest might just to inherit from a lot of Parent classes that would store all possible variations (if foo is there, bar is not etc), and MRO would solve which doc to choose from.
I am using VSCode, and pretty sure it's just not calling my custom MRO (for probably a justified reason!)
So this might be more of a feature request, but also a question: what is the best way to do this statically ? 😅
Beta Was this translation helpful? Give feedback.
All reactions