简体   繁体   中英

Doxygen: How to use variable name instead of variable type in python?

I have a python code:

class Test:
    ## Step number in test steps list.
    current_step_number: int = 0

For this code Doxygen generates such piece of documentation:

Member Data Documentation
◆ int
   Test.Test.int       
   Step number in test steps list.

So Doxygen takes variable type int instead of variable name current_step_number. How can I correct this behavior to have variable name in the documentation?

Tried with version 1.9.1 and same result. My workaround:

class Test:
    ## Step number in test steps list.
    current_step_number: int
    current_step_number = 0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM