File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
databind.core/src/databind/core/tests Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change
1
+
2
+ # In Python 3.6, we get a warning about an unused ignore later in the file, but not in other versions of Python.
3
+ # Let's ignore that warning for the whole file, there doesn't seem to be a better way to have Mypy ignore the unused
4
+ # ignore comment.
5
+
6
+ # mypy: no-warn-unused-ignores
7
+
1
8
import dataclasses
2
9
import typing as t
3
10
@@ -312,7 +319,7 @@ class B2(t.Generic[U]):
312
319
)
313
320
assert convert_dataclass_to_schema (B2 ) == Schema (
314
321
{
315
- "a" : Field (TypeHint (A [U ])), # type: ignore[valid-type,unused-ignore ] # Type variable U is unbound # noqa: E501
322
+ "a" : Field (TypeHint (A [U ])), # type: ignore[valid-type] # Type variable U is unbound # noqa: E501
316
323
"b" : Field (TypeHint (str )),
317
324
},
318
325
B2 ,
You can’t perform that action at this time.
0 commit comments