I'm getting a warning when loading an xlsm file using openpyxl for python, then saving/closing it after I add some data to specific 7 cells in a specific sheet. The issue is that I'm getting a "FutureWarning" that I have no idea what it is about. I've searched for this for some time now and have not been able to decipher.
I'm suspecting that the wb.save() method is what's triggering this warning as it doesn't show up when I comment this specific line up.
Does anyone know what this is?
CODE
wb = openpyxl.load_workbook(filename=directory_path.xlsm, keep_vba=True)
ws = wb['sheetname']
ws.cell(row1, col1).value = ### (some number)
ws.cell(row2, col2).value = ### (some number)
ws.cell(row3, col3).value = ### (some number)
ws.cell(row4, col4).value = ### (some number)
ws.cell(row5, col5).value = ### (some number)
ws.cell(row6, col6).value = ### (some number)
ws.cell(row7, col7).value = ### (some number)
wb.save(directory_path.xlsm)
wb.close()
WARNING MESSAGE
C:\Users\...\Anaconda3\lib\site-packages\openpyxl\comments\shape_writer.py:75: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
if not shape_types: