-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a missing test case for the final decorator and updated results.
- Loading branch information
Showing
11 changed files
with
40 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
version = "mypy 1.8.0" | ||
test_duration = 0.38987088203430176 | ||
test_duration = 0.5543861389160156 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
version = "pyre 0.9.19" | ||
test_duration = 1.5279979705810547 | ||
test_duration = 1.92598295211792 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
version = "pyright 1.1.344" | ||
test_duration = 1.0795209407806396 | ||
test_duration = 1.0778310298919678 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,32 @@ | ||
conformant = "Partial" | ||
notes = """ | ||
Does not report error for overloaded @final method defined in stub file. | ||
Does not report error for overload that is marked @final when implementation is not. | ||
""" | ||
output = """ | ||
File "qualifiers_final_decorator.py", line 8, in <module>: Can't find module '_qualifiers_final_decorator'. [import-error] | ||
File "qualifiers_final_decorator.py", line 21, in <module>: Cannot subclass final class: Base1 [final-error] | ||
File "qualifiers_final_decorator.py", line 52, in method4: bad return type [bad-return-type] | ||
Expected: str | ||
Actually returned: int | ||
File "qualifiers_final_decorator.py", line 55, in <module>: Class Derived2 overrides final method method1, defined in base class Base2 [final-error] | ||
File "qualifiers_final_decorator.py", line 55, in <module>: Class Derived2 overrides final method method4, defined in base class Base2 [final-error] | ||
File "qualifiers_final_decorator.py", line 55, in <module>: Class Derived2 overrides final method method3, defined in base class Base2 [final-error] | ||
File "qualifiers_final_decorator.py", line 55, in <module>: Class Derived2 overrides final method method2, defined in base class Base2 [final-error] | ||
File "qualifiers_final_decorator.py", line 55, in <module>: Class Derived2 overrides final method method3, defined in base class Base2 [final-error] | ||
File "qualifiers_final_decorator.py", line 55, in <module>: Class Derived2 overrides final method method4, defined in base class Base2 [final-error] | ||
File "qualifiers_final_decorator.py", line 55, in <module>: Class Derived2 overrides final method method1, defined in base class Base2 [final-error] | ||
File "qualifiers_final_decorator.py", line 76, in method4: bad return type [bad-return-type] | ||
Expected: str | ||
Actually returned: int | ||
File "qualifiers_final_decorator.py", line 89, in method: bad return type [bad-return-type] | ||
File "qualifiers_final_decorator.py", line 90, in method: bad return type [bad-return-type] | ||
Expected: str | ||
Actually returned: int | ||
File "qualifiers_final_decorator.py", line 102, in method: bad return type [bad-return-type] | ||
File "qualifiers_final_decorator.py", line 103, in method: bad return type [bad-return-type] | ||
Expected: str | ||
Actually returned: int | ||
File "qualifiers_final_decorator.py", line 116, in <module>: Class Derived5 overrides final method method, defined in base class Base5_2 [final-error] | ||
File "qualifiers_final_decorator.py", line 117, in Derived5: Overriding method signature mismatch [signature-mismatch] | ||
File "qualifiers_final_decorator.py", line 117, in <module>: Class Derived5 overrides final method method, defined in base class Base5_2 [final-error] | ||
File "qualifiers_final_decorator.py", line 118, in Derived5: Overriding method signature mismatch [signature-mismatch] | ||
Base signature: 'def Base5_2.method(self, v: int) -> None'. | ||
Subclass signature: 'def Derived5.method(self) -> None'. | ||
Not enough positional parameters in overriding method. | ||
File "qualifiers_final_decorator.py", line 125, in <module>: Cannot apply @final decorator to func1 [final-error] | ||
File "qualifiers_final_decorator.py", line 126, in <module>: Cannot apply @final decorator to func1 [final-error] | ||
@final can only be applied to classes and methods. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
version = "pytype 2023.12.18" | ||
test_duration = 65.10498309135437 | ||
test_duration = 68.93368911743164 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters