Skip to content

Commit

Permalink
Remove extra newlines.
Browse files Browse the repository at this point in the history
  • Loading branch information
syastrov committed Apr 10, 2019
1 parent 8e20acc commit 2c68eed
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion test-data/unit/check-classes.test
Original file line number Diff line number Diff line change
Expand Up @@ -4020,7 +4020,6 @@ class C(B):
[out]
main:6: error: Incompatible types in assignment (expression has type "str", base class "A" defined the type as "int")


[case testClassIgnoreType_RedefinedAttributeTypeIgnoredInChildren]
class A:
x = 0
Expand Down
7 changes: 0 additions & 7 deletions test-data/unit/check-multiple-inheritance.test
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,6 @@ class Combo(Base2, Base1): ...
main:10: error: Definition of "NestedVar" in base class "Base2" is incompatible with definition in base class "Base1"

[case testMultipleInheritance_NestedVariableOverriddenWithCompatibleType]

from typing import TypeVar, Generic
T = TypeVar('T', covariant=True)
class GenericBase(Generic[T]):
Expand All @@ -476,7 +475,6 @@ class A(Base1, Base2):
[out]

[case testMultipleInheritance_NestedVariableOverriddenWithIncompatibleType1]

from typing import TypeVar, Generic
T = TypeVar('T', covariant=True)
class GenericBase(Generic[T]):
Expand All @@ -491,7 +489,6 @@ class A(Base1, Base2):
main:11: error: Incompatible types in assignment (expression has type "GenericBase[Base1]", base class "Base2" defined the type as "GenericBase[Base2]")

[case testMultipleInheritance_NestedVariableOverriddenWithIncompatibleType2]

from typing import TypeVar, Generic
T = TypeVar('T', covariant=True)
class GenericBase(Generic[T]):
Expand All @@ -505,9 +502,7 @@ class A(Base1, Base2):
[out]
main:11: error: Incompatible types in assignment (expression has type "GenericBase[Base2]", base class "Base1" defined the type as "GenericBase[Base1]")


[case testMultipleInheritance_NestedVariableOverriddenWithCompatibleType]

from typing import TypeVar, Generic
T = TypeVar('T', covariant=True)
class GenericBase(Generic[T]):
Expand All @@ -520,8 +515,6 @@ class A(Base1, Base2):
Nested: GenericBase['Base1']
[out]



[case testMultipleInheritance_MethodDefinitionsCompatibleWithOverride]
from typing import TypeVar, Union
_T = TypeVar('_T')
Expand Down

0 comments on commit 2c68eed

Please sign in to comment.