@@ -24,14 +24,14 @@ def test_encode_something(simple_attribute):
24
24
25
25
@dataclass
26
26
class SomeClass (Serializable ):
27
- d : dict [str , some_type ] = dict_field ()
28
- l : list [tuple [some_type , some_type ]] = list_field ()
29
- t : dict [str , Optional [some_type ]] = dict_field ()
27
+ d : dict [str , some_type ] = dict_field () # pyright: ignore[reportInvalidTypeForm]
28
+ some_list : list [tuple [some_type , some_type ]] = list_field () # pyright: ignore[reportInvalidTypeForm]
29
+ t : dict [str , Optional [some_type ]] = dict_field () # pyright: ignore[reportInvalidTypeForm]
30
30
# w: Dict[str, Union[some_type, int, str, None, str, None]] = dict_field()
31
31
32
32
b = SomeClass ()
33
33
b .d .update ({"hey" : expected_value })
34
- b .l .append ((expected_value , expected_value ))
34
+ b .some_list .append ((expected_value , expected_value ))
35
35
b .t .update ({"hey" : None , "hey2" : expected_value })
36
36
# b.w.update({
37
37
# "hey": None,
@@ -85,14 +85,14 @@ class Container(Serializable, Generic[ItemT]):
85
85
86
86
@dataclass
87
87
class SomeClass (Serializable ):
88
- d : dict [str , some_type ] = dict_field ()
89
- l : list [tuple [some_type , some_type ]] = list_field ()
90
- t : dict [str , Optional [some_type ]] = dict_field ()
88
+ d : dict [str , some_type ] = dict_field () # pyright: ignore[reportInvalidTypeForm]
89
+ some_list : list [tuple [some_type , some_type ]] = list_field () # pyright: ignore[reportInvalidTypeForm]
90
+ t : dict [str , Optional [some_type ]] = dict_field () # pyright: ignore[reportInvalidTypeForm]
91
91
# w: Dict[str, Union[some_type, int, str, None, str, None]] = dict_field()
92
92
93
93
b = SomeClass ()
94
94
b .d .update ({"hey" : expected_value })
95
- b .l .append ((expected_value , expected_value ))
95
+ b .some_list .append ((expected_value , expected_value ))
96
96
b .t .update ({"hey" : None , "hey2" : expected_value })
97
97
# b.w.update({
98
98
# "hey": None,
0 commit comments