Skip to content

Commit f8d079e

Browse files
committed
Merge remote-tracking branch 'origin' into string-annotations
2 parents 9b007e0 + 5ab19c9 commit f8d079e

5 files changed

Lines changed: 29 additions & 42 deletions

File tree

‎conformance/results/results.html‎

Lines changed: 4 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
conformant = "Partial"
2-
notes = """
3-
Does not honor `@override` compatibility checks for `__init__` and `__new__`:
4-
the incompatible constructor overrides in `ChildC2` are not flagged.
5-
"""
6-
conformance_automated = "Fail"
1+
conformance_automated = "Pass"
72
errors_diff = """
8-
Lines 134, 135: Expected error (tag 'init')
9-
Lines 137, 138: Expected error (tag 'new')
103
"""
114
output = """
125
classes_override.py:53:9: error[invalid-explicit-override] Method `method3` is decorated with `@override` but does not override anything
136
classes_override.py:65:9: error[invalid-explicit-override] Method `method4` is decorated with `@override` but does not override anything
147
classes_override.py:79:9: error[invalid-explicit-override] Method `static_method1` is decorated with `@override` but does not override anything
158
classes_override.py:84:9: error[invalid-explicit-override] Method `class_method1` is decorated with `@override` but does not override anything
169
classes_override.py:89:9: error[invalid-explicit-override] Method `property1` is decorated with `@override` but does not override anything
10+
classes_override.py:135:9: error[invalid-method-override] Invalid override of method `__init__`: Definition is incompatible with `ParentC.__init__`
11+
classes_override.py:138:9: error[invalid-method-override] Invalid override of method `__new__`: Definition is incompatible with `ParentC.__new__`
1712
"""

‎conformance/results/ty/specialtypes_type.toml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
conformance_automated = "Fail"
22
conformant = "Partial"
33
notes = """
4-
Allows arbitrary attributes to be accessed on `TA` where `TA = typing.Type[typing.Any]` or `TA = type[typing.Any]`.
54
Treats `type` equivalently to `type[object]` rather than `type[typing.Any]`.
65
"""
76
errors_diff = """
8-
Line 144: Expected 1 errors
9-
Line 146: Expected 1 errors
107
Line 84: Unexpected errors ['specialtypes_type.py:84:5: error[type-assertion-failure] Type `type` does not match asserted type `type[Any]`']
118
Line 99: Unexpected errors ['specialtypes_type.py:99:17: error[unresolved-attribute] Object of type `type` has no attribute `unknown`']
129
Line 100: Unexpected errors ['specialtypes_type.py:100:17: error[unresolved-attribute] Object of type `type` has no attribute `unknown`']
@@ -31,7 +28,9 @@ specialtypes_type.py:120:5: error[unresolved-attribute] Object of type `type` ha
3128
specialtypes_type.py:137:5: error[type-assertion-failure] Type `type` does not match asserted type `type[Any]`
3229
specialtypes_type.py:139:5: error[type-assertion-failure] Type `type` does not match asserted type `type[Any]`
3330
specialtypes_type.py:143:1: error[unresolved-attribute] Special form `typing.Type` has no attribute `unknown`
31+
specialtypes_type.py:144:1: error[unresolved-attribute] Object of type `<special-form 'type[Any]'>` has no attribute `unknown`
3432
specialtypes_type.py:145:1: error[unresolved-attribute] Class `type` has no attribute `unknown`
33+
specialtypes_type.py:146:1: error[unresolved-attribute] Object of type `<special-form 'type[Any]'>` has no attribute `unknown`
3534
specialtypes_type.py:169:21: error[invalid-assignment] Object of type `type` is not assignable to `type[int]`
3635
specialtypes_type.py:175:16: error[invalid-return-type] Return type does not match returned value: expected `type[T@ClassA]`, found `type`
3736
"""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "ty 0.0.78"
1+
version = "ty 0.0.81"

‎conformance/uv.lock‎

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)