@@ -137,12 +137,12 @@ def decode_chunk(
137137 """
138138 bb_out : Any = chunk_bytes
139139 for bb_codec in reversed (self ._bb_codecs ):
140- bb_out = bb_codec ._decode_sync (bb_out , self ._ab_spec ) # type: ignore[union- attr]
140+ bb_out = bb_codec ._decode_sync (bb_out , self ._ab_spec ) # type: ignore[attr-defined ]
141141
142- ab_out : Any = self ._ab_codec ._decode_sync (bb_out , self ._ab_spec ) # type: ignore[union- attr]
142+ ab_out : Any = self ._ab_codec ._decode_sync (bb_out , self ._ab_spec ) # type: ignore[attr-defined ]
143143
144144 for aa_codec , spec in reversed (self .layers ):
145- ab_out = aa_codec ._decode_sync (ab_out , spec ) # type: ignore[union- attr]
145+ ab_out = aa_codec ._decode_sync (ab_out , spec ) # type: ignore[attr-defined ]
146146
147147 return ab_out # type: ignore[no-any-return]
148148
@@ -159,16 +159,16 @@ def encode_chunk(
159159 for aa_codec , spec in self .layers :
160160 if aa_out is None :
161161 return None
162- aa_out = aa_codec ._encode_sync (aa_out , spec ) # type: ignore[union- attr]
162+ aa_out = aa_codec ._encode_sync (aa_out , spec ) # type: ignore[attr-defined ]
163163
164164 if aa_out is None :
165165 return None
166- bb_out : Any = self ._ab_codec ._encode_sync (aa_out , self ._ab_spec ) # type: ignore[union- attr]
166+ bb_out : Any = self ._ab_codec ._encode_sync (aa_out , self ._ab_spec ) # type: ignore[attr-defined ]
167167
168168 for bb_codec in self ._bb_codecs :
169169 if bb_out is None :
170170 return None
171- bb_out = bb_codec ._encode_sync (bb_out , self ._ab_spec ) # type: ignore[union- attr]
171+ bb_out = bb_codec ._encode_sync (bb_out , self ._ab_spec ) # type: ignore[attr-defined ]
172172
173173 return bb_out # type: ignore[no-any-return]
174174
0 commit comments