Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea44030

Browse files
authored
Merge pull request #44 from rgant/fix/deprecation-warnings
Resolve depreciation warning.
2 parents 38896ab + 85253fa commit ea44030

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

linter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
class Mypy(PythonLinter):
3535
"""Provides an interface to mypy."""
3636

37-
executable = "mypy"
3837
regex = r'^[^:]+:(?P<line>\d+):((?P<col>\d+):)?\s*(?P<error_type>[^:]+):\s*(?P<message>.+)'
3938
line_col_base = (1, 1)
4039
tempfile_suffix = 'py'
@@ -56,7 +55,7 @@ class Mypy(PythonLinter):
5655
def cmd(self):
5756
"""Return a list with the command line to execute."""
5857
cmd = [
59-
self.executable,
58+
'mypy',
6059
'${args}',
6160
'--show-column-numbers',
6261
'--hide-error-context',

0 commit comments

Comments
 (0)