Skip to content

Commit

Permalink
tests: bump to mypy 0.710
Browse files Browse the repository at this point in the history
Update mypy output parser for python/mypy#6919
  • Loading branch information
ikonst committed Jun 25, 2019
1 parent 34069dd commit a496171
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pynamodb/tests/mypy_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def _run_mypy(program: str) -> Iterable[str]:
with TemporaryDirectory() as tempdirname:
with open(f'{tempdirname}/__main__.py', 'w') as f:
f.write(program)
error_pattern = re.compile(fr'^{re.escape(f.name)}:(\d+): error: (.*)$')
error_pattern = re.compile(fr'^{re.escape(f.name)}:(\d+): (?:error|note): (.*)$')
stdout, stderr, exit_status = mypy.api.run([
f.name,
'--show-traceback',
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ flake8==2.4.1
pyyaml==5.1
sphinx==1.8.5
sphinx-rtd-theme==0.4.3
mypy==0.701; python_version >= '3.6'
mypy==0.710; python_version >= '3.6'

0 comments on commit a496171

Please sign in to comment.