You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing an issue with boolean items and their comments.
Here is a minimalist piece of code to reproduce the issue:
fromtomlkitimportdocument, table, commentdoc=document()
p_table=table()
p_table.comment('a table level comment')
p_table['variable1'] =5p_table['variable1'].comment('variable1 is integer')
p_table['bool_variable'] =Truep_table['bool_variable'].comment('bool_variable is bool ') # it fails here!!!doc.add(p_table, 'proc')
when I try to add a comment to the boolean variable, an exception is raised complaining that bool type has no comment attribute.
Reading this other issue, it looks like this might be the expected behavior and not a bug as I was suspecting.
Is this correct? Is this happening only for boolean fields, or other types might be affected? I could not find anything in the documentation.
Is there a workaround to assign a comment to a boolean field?
Thanks
The text was updated successfully, but these errors were encountered:
I am facing an issue with boolean items and their comments.
Here is a minimalist piece of code to reproduce the issue:
when I try to add a comment to the boolean variable, an exception is raised complaining that bool type has no comment attribute.
Reading this other issue, it looks like this might be the expected behavior and not a bug as I was suspecting.
Is this correct? Is this happening only for boolean fields, or other types might be affected? I could not find anything in the documentation.
Is there a workaround to assign a comment to a boolean field?
Thanks
The text was updated successfully, but these errors were encountered: