Skip to content
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

DeprecationWarning: Testing an element's truth value #100

Closed
QINZHAOYU opened this issue Apr 16, 2024 · 1 comment
Closed

DeprecationWarning: Testing an element's truth value #100

QINZHAOYU opened this issue Apr 16, 2024 · 1 comment

Comments

@QINZHAOYU
Copy link

Thank you very much for the tool, perfect solution to my need to generate documentation for C++ projects!

While i upgrade python from 3.9 to 3.12.2, with mkdoxy 1.2.0, there is a warning appeared, as below:

INFO - Building documentation...
INFO - Cleaning site directory
INFO - Start plugin MkDoxy
INFO - -> Start project 'models'
INFO - -> generating Doxygen files
INFO - DeprecationWarning: Testing an element's truth value will raise an exception in future versions. Use specific 'len(elem)' or
'elem is not None' test instead.
File "D:\miniconda3\envs\oasis\Lib\site-packages\mkdoxy\node.py", line 736, in brief
return self._brief.md()
File "D:\miniconda3\envs\oasis\Lib\site-packages\mkdoxy\property.py", line 38, in md
if not briefdescription:

I'm not sure if it's the python version that causes it, just as a feedback.

@JakubAndrysek
Copy link
Owner

Thank you for finding the warning, I will look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants