Skip to content

Commit 485975c

Browse files
committed
Implement feedback from pull request
1 parent b33d340 commit 485975c

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

conformance/results/mypy/qualifiers_annotated.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ qualifiers_annotated.py:91: error: "<typing special form>" not callable [operat
2828
qualifiers_annotated.py:92: error: "<typing special form>" not callable [operator]
2929
qualifiers_annotated.py:98: error: Invalid type: ClassVar nested inside other type [valid-type]
3030
qualifiers_annotated.py:100: error: Final can be only used as an outermost qualifier in a variable annotation [valid-type]
31-
qualifiers_annotated.py:119: error: Cannot redefine "T" as a type variable [misc]
32-
qualifiers_annotated.py:119: error: Invalid assignment target [misc]
3331
"""
3432
conformance_automated = "Fail"
3533
errors_diff = """

conformance/results/results.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ <h3>Python Type System Conformance Test Results</h3>
256256
<th class="column col2 partially-conformant">Partial</th>
257257
<th class="column col2 conformant">Pass</th>
258258
<th class="column col2 not-conformant"><div class="hover-text">Unsupported<span class="tooltip-text" id="bottom"><p>Does not support generic defaults.</p></span></div></th>
259-
<th class="column col2 partially-conformant">Partial</th>
259+
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not reject TypeVars with defaults after a TypeVarTuple</p><p>Type parameter defaults are not bound by attribute access</p><p>ParamSpec after TypeVarTuple is not always handled correctly</p></span></div></th>
260260
</tr>
261261
<tr><th class="column col1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;generics_defaults_referential</th>
262262
<th class="column col2 partially-conformant">Partial</th>

conformance/results/zuban/generics_defaults.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
conformant = "Partial"
2+
notes = """
3+
Does not reject TypeVars with defaults after a TypeVarTuple
4+
Type parameter defaults are not bound by attribute access
5+
ParamSpec after TypeVarTuple is not always handled correctly
6+
"""
27
conformance_automated = "Fail"
38
errors_diff = """
49
Line 141: Expected 1 errors

conformance/results/zuban/qualifiers_annotated.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ qualifiers_annotated.py:85: error: Argument 1 to "func4" has incompatible type "
2424
qualifiers_annotated.py:91: error: "_SpecialForm" not callable
2525
qualifiers_annotated.py:92: error: "_SpecialForm" not callable
2626
qualifiers_annotated.py:93: error: "<typing special form>" not callable
27-
qualifiers_annotated.py:119: error: Name "T" already defined on line 25
2827
"""

conformance/src/type_checker.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,6 @@ def install(self) -> bool:
291291
[sys.executable, "-m", "pip", "install", "zuban"],
292292
check=True,
293293
)
294-
295-
# Run "mypy --version" to ensure that it's installed and to work
296-
# around timing issues caused by malware scanners on some systems.
297-
self.get_version()
298-
299294
return True
300295
except CalledProcessError:
301296
print("Unable to install zuban")

conformance/tests/qualifiers_annotated.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,4 @@ class ClassC(TypedDict):
115115

116116
TA1: TypeAlias = Annotated[int | str, ""]
117117
TA2 = Annotated[Literal[1, 2], ""]
118-
119-
T = TypeVar("T") # E?: T is already defined
120-
121118
TA3 = Annotated[T, ""]

0 commit comments

Comments
 (0)