@@ -327,16 +327,17 @@ class _OrderedDictValuesView(ValuesView[_VT_co], Reversible[_VT_co]):
327
327
# The C implementations of the "views" classes
328
328
# (At runtime, these are called `odict_keys`, `odict_items` and `odict_values`,
329
329
# but they are not exposed anywhere)
330
+ # pyright doesn't have a specific error code for subclassing error!
330
331
@final
331
- class _odict_keys (dict_keys [_KT_co , _VT_co ], Reversible [_KT_co ]): # type: ignore[misc]
332
+ class _odict_keys (dict_keys [_KT_co , _VT_co ], Reversible [_KT_co ]): # type: ignore[misc] # pyright: ignore
332
333
def __reversed__ (self ) -> Iterator [_KT_co ]: ...
333
334
334
335
@final
335
- class _odict_items (dict_items [_KT_co , _VT_co ], Reversible [tuple [_KT_co , _VT_co ]]): # type: ignore[misc]
336
+ class _odict_items (dict_items [_KT_co , _VT_co ], Reversible [tuple [_KT_co , _VT_co ]]): # type: ignore[misc] # pyright: ignore
336
337
def __reversed__ (self ) -> Iterator [tuple [_KT_co , _VT_co ]]: ...
337
338
338
339
@final
339
- class _odict_values (dict_values [_KT_co , _VT_co ], Reversible [_VT_co ], Generic [_KT_co , _VT_co ]): # type: ignore[misc]
340
+ class _odict_values (dict_values [_KT_co , _VT_co ], Reversible [_VT_co ], Generic [_KT_co , _VT_co ]): # type: ignore[misc] # pyright: ignore
340
341
def __reversed__ (self ) -> Iterator [_VT_co ]: ...
341
342
342
343
class OrderedDict (dict [_KT , _VT ], Reversible [_KT ], Generic [_KT , _VT ]):
0 commit comments