Closed FlixMa closed 2 years ago
Thanks for the report! I was able to confirm the bug. It seems inspect.getmembers
does not return the methods of enums. However they are available through the class' __dict__
attribute. I'll work on a fix later, PRs welcome!
This is likely solved by the new handler. Feedback appreciated!
Describe the bug The parser is not picking up methods of enums, only their attributes when told to parse a enum subclass, e.g.
Direction
. However, if instructed to parse a method of that enum directly (e.g.Direction.to_vector
) it will get picked up correctly.To Reproduce
Expected behavior I expected to get the attributes as well as the methods.
System (please complete the following information):
pytkdocs
version 0.7