Skip to content

Commit

Permalink
Fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
quartox committed Jun 5, 2017
1 parent 13dcb81 commit 079bff6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test-data/unit/check-typevar-values.test
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ T = TypeVar('T', int, str)
def f(x: T) -> None: pass
f(1)
f('x')
f(object()) # E: Type argument 1 of "f" has incompatible value\
f(object()) # E: Type argument 1 of "f" has incompatible value \
# N: "T" must be all one type: int or str

[case testCallGenericFunctionWithTypeVarValueRestrictionUsingContext]
Expand All @@ -19,7 +19,7 @@ s = ['x']
o = [object()]
i = f(1)
s = f('')
o = f(1) # E: Type argument 1 of "f" has incompatible value\
o = f(1) # E: Type argument 1 of "f" has incompatible value \
# N: "T" must be all one type: int or str
[builtins fixtures/list.pyi]

Expand Down Expand Up @@ -241,7 +241,7 @@ class A(Generic[X]):
A(1)
A('x')
A(cast(Any, object()))
A(object()) # E: Type argument 1 of "A" has incompatible value\
A(object()) # E: Type argument 1 of "A" has incompatible value \
# N: "X" must be all one type: int or str

[case testGenericTypeWithTypevarValuesAndTypevarArgument]
Expand Down

0 comments on commit 079bff6

Please sign in to comment.