Skip to content

Commit

Permalink
Add user friendly handling of Mypy Internal Error
Browse files Browse the repository at this point in the history
Fix #12
  • Loading branch information
elarivie committed Nov 10, 2017
1 parent 063b2b3 commit 5ed22b9
Show file tree
Hide file tree
Showing 9 changed files with 212 additions and 130 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [Released] - 2.4.2 2017-11-09

### Added
- User friendly support of Mypy Internal Error.

## [Released] - 2.4.1 2017-10-22

### Added
Expand Down
2 changes: 1 addition & 1 deletion HEARTBEAT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2017-10
2017-11
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ An [Atom][atom] [Linter][linter] plugin which displays warnings related to [Pyth
| Setting | Default Values |
| ------------------------------------------- | -------------- |
| Path to the executable of [Python][python] | `python3` |
| Mypy Notify Internal Error | `True` |
| Ignore File name Regex | |
| [Mypy Path][MypyPath] | |
| [Mypy ini File][OptMypyIni] | |
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.1
2.4.2
312 changes: 184 additions & 128 deletions lib/init.coffee

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions spec/fixtures/issue12/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import call_command
from . import backends
10 changes: 10 additions & 0 deletions spec/fixtures/issue12/backends/Bla.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from .. import *
from typing import Iterable

class Bla:
def __init__(self, path: str) -> None:
self.path = path

def method(self, options: Iterable[str]) -> str:
return call_command.call(["BLA"])

1 change: 1 addition & 0 deletions spec/fixtures/issue12/backends/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .Bla import Bla
7 changes: 7 additions & 0 deletions spec/fixtures/issue12/call_command.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import io

def call() -> str:

output_buffer = io.StringIO()

return output_buffer.getvalue()

0 comments on commit 5ed22b9

Please sign in to comment.