Skip to content

Commit

Permalink
Manually make a few more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Jul 15, 2023
1 parent d5cff89 commit 0a3fbc1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions test-data/unit/fine-grained.test
Original file line number Diff line number Diff line change
Expand Up @@ -4707,7 +4707,7 @@ x: Optional[int]
y: int
[out]
==
main:3: error: Incompatible types in assignment (expression has type "Optional[int]", variable has type "int")
main:2: error: Incompatible types in assignment (expression has type "Optional[int]", variable has type "int")

[case testStrictOptionalFunction]
import a
Expand All @@ -4725,7 +4725,7 @@ def g(x: int) -> None:
pass
[out]
==
main:6: error: Argument 1 to "g" has incompatible type "Optional[int]"; expected "int"
main:5: error: Argument 1 to "g" has incompatible type "Optional[int]"; expected "int"

[case testStrictOptionalMethod]
import a
Expand All @@ -4746,7 +4746,7 @@ class B:
pass
[out]
==
main:7: error: Argument 1 to "g" of "B" has incompatible type "Optional[int]"; expected "int"
main:6: error: Argument 1 to "g" of "B" has incompatible type "Optional[int]"; expected "int"

[case testPerFileStrictOptionalModule]
import a
Expand Down Expand Up @@ -10057,7 +10057,7 @@ class Base:
def meth(self) -> int: ...
[out]
==
main:6: error: Call to abstract method "meth" of "Base" with trivial body via super() is unsafe
main:5: error: Call to abstract method "meth" of "Base" with trivial body via super() is unsafe

[case testAbstractBodyTurnsEmptyProtocol]
from b import Base
Expand All @@ -10076,7 +10076,7 @@ class Base(Protocol):
def meth(self) -> int: ...
[out]
==
main:6: error: Call to abstract method "meth" of "Base" with trivial body via super() is unsafe
main:5: error: Call to abstract method "meth" of "Base" with trivial body via super() is unsafe

[case testPrettyMessageSorting]
# flags: --pretty
Expand Down
8 changes: 4 additions & 4 deletions test-data/unit/pythoneval.test
Original file line number Diff line number Diff line change
Expand Up @@ -1666,10 +1666,10 @@ else:
reveal_type(k)

[out]
_testNarrowTypeForDictKeys.py:7: note: Revealed type is "builtins.str"
_testNarrowTypeForDictKeys.py:9: note: Revealed type is "Union[builtins.str, None]"
_testNarrowTypeForDictKeys.py:14: note: Revealed type is "builtins.str"
_testNarrowTypeForDictKeys.py:16: note: Revealed type is "Union[builtins.str, None]"
_testNarrowTypeForDictKeys.py:6: note: Revealed type is "builtins.str"
_testNarrowTypeForDictKeys.py:8: note: Revealed type is "Union[builtins.str, None]"
_testNarrowTypeForDictKeys.py:13: note: Revealed type is "builtins.str"
_testNarrowTypeForDictKeys.py:15: note: Revealed type is "Union[builtins.str, None]"

[case testTypeAliasWithNewStyleUnion]
# flags: --python-version 3.10
Expand Down

0 comments on commit 0a3fbc1

Please sign in to comment.