Skip to content

Commit

Permalink
Merge pull request #21 from singulared/master
Browse files Browse the repository at this point in the history
Fix mypy==0.700 compatibility.
  • Loading branch information
tomv564 authored Apr 12, 2019
2 parents c70ca23 + d3e4991 commit e488270
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyls_mypy/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ def parse_line(line, document=None):
def pyls_lint(config, document):
live_mode = config.plugin_settings('pyls_mypy').get('live_mode', True)
if live_mode:
args = ('--incremental',
args = ['--incremental',
'--show-column-numbers',
'--follow-imports', 'silent',
'--command', document.source)
'--command', document.source]
else:
args = ('--incremental',
args = ['--incremental',
'--show-column-numbers',
'--follow-imports', 'silent',
document.path)
document.path]

report, errors, _ = mypy_api.run(args)

Expand Down

0 comments on commit e488270

Please sign in to comment.