I'm running a code here:
import docx, os
os.chdir('C:\\PythonScripts')
doc = docx.Document()
doc.add_paragraph('Hello World!')
doc.paragraphs[0].style = 'Heading6'
doc.save('test.docx')
and I get that warning in the title. The script still works, but I think I'm doing something outdated in the newest updates. How do I do this correctly?