diff options
Diffstat (limited to 'ale_linters/python/mypy.vim')
-rw-r--r-- | ale_linters/python/mypy.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/python/mypy.vim b/ale_linters/python/mypy.vim index c60c0607..d0a891ea 100644 --- a/ale_linters/python/mypy.vim +++ b/ale_linters/python/mypy.vim @@ -3,7 +3,7 @@ let g:ale_python_mypy_options = get(g:, 'ale_python_mypy_options', '') -function! g:ale_linters#python#mypy#GetCommand(buffer) abort +function! ale_linters#python#mypy#GetCommand(buffer) abort let l:automatic_stubs_dir = ale#util#FindNearestDirectory(a:buffer, 'stubs') " TODO: Add Windows support let l:automatic_stubs_command = (has('unix') && !empty(l:automatic_stubs_dir)) @@ -11,13 +11,13 @@ function! g:ale_linters#python#mypy#GetCommand(buffer) abort \ : '' return 'mypy --show-column-numbers ' - \ . g:ale_python_mypy_options + \ . ale#Var(a:buffer, 'python_mypy_options') \ . ' %t' endfunction let s:path_pattern = '[a-zA-Z]\?\\\?:\?[[:alnum:]/\.\-_]\+' -function! g:ale_linters#python#mypy#Handle(buffer, lines) abort +function! ale_linters#python#mypy#Handle(buffer, lines) abort " Look for lines like the following: " " file.py:4: error: No library stub file for module 'django.db' |