We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c055d36 + a2536f7 commit 6fd72c3Copy full SHA for 6fd72c3
pylsp_mypy/plugin.py
@@ -234,9 +234,9 @@ def get_diagnostics(
234
global tmpFile
235
if live_mode and not is_saved:
236
if tmpFile:
237
- tmpFile = open(tmpFile.name, "w")
+ tmpFile = open(tmpFile.name, "w", encoding="utf-8")
238
else:
239
- tmpFile = tempfile.NamedTemporaryFile("w", delete=False)
+ tmpFile = tempfile.NamedTemporaryFile("w", delete=False, encoding="utf-8")
240
log.info("live_mode tmpFile = %s", tmpFile.name)
241
tmpFile.write(document.source)
242
tmpFile.close()
0 commit comments