Skip to content

Commit 22c67da

Browse files
authored
mypy tests: sidestep AST col_offset changes (#8702)
Fixes #8701 Co-authored-by: hauntsaninja <>
1 parent 833fc2c commit 22c67da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-data/unit/check-columns.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def f(x: object, n: int, s: str) -> None:
126126
import m
127127
if int():
128128
from m import foobaz # E:5: Module 'm' has no attribute 'foobaz'; maybe "foobar"?
129-
(1).x # E:2: "int" has no attribute "x"
129+
1 .x # E:1: "int" has no attribute "x"
130130
(m.foobaz()) # E:2: Module has no attribute "foobaz"; maybe "foobar"?
131131

132132
[file m.py]
@@ -407,7 +407,7 @@ def f(x: T) -> T:
407407
bb: List[int] = [''] # E:22: List item 0 has incompatible type "str"; expected "int"
408408
# XXX: Disabled because the column differs in 3.8
409409
# aa: List[int] = ['' for x in [1]] # :22: List comprehension has incompatible type List[str]; expected List[int]
410-
cc = (1).bad # E:11: "int" has no attribute "bad"
410+
cc = 1 .bad # E:10: "int" has no attribute "bad"
411411
n: int = '' # E:14: Incompatible types in assignment (expression has type "str", variable has type "int")
412412
return x
413413
[builtins fixtures/list.pyi]

0 commit comments

Comments
 (0)