Skip to content

Commit 2bfed79

Browse files
committed
New parsing span infrastructure
1 parent fb3e3b2 commit 2bfed79

File tree

6 files changed

+712
-1
lines changed

6 files changed

+712
-1
lines changed

mypy/myunit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def assert_raises(typ: type, *rest: Any) -> None:
7070
"""
7171
# Parse arguments.
7272
msg = None # type: str
73-
if isinstance(rest[0], str) or rest[0] is None:
73+
if not callable(rest[0]):
7474
msg = rest[0]
7575
rest = rest[1:]
7676
f = rest[0]

mypy/syntax/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# This page intentionally left blank

0 commit comments

Comments
 (0)