Following #14856, the OrderingFilter.fields no longer allows something like OrderingFilter(fields=['a', 'b', ('c', 'c__d')] due to the stubs declaring fields as dict[str, str] | Iterable[str] | Iterable[tuple[str, str]]. The more correct type should be dict[str, str] | Iterable[str | tuple[str, str]].
Despite the docs being vague about it, this is a valid usage supported by the django-filter code.
Following #14856, the OrderingFilter.fields no longer allows something like
OrderingFilter(fields=['a', 'b', ('c', 'c__d')]due to the stubs declaringfieldsasdict[str, str] | Iterable[str] | Iterable[tuple[str, str]]. The more correct type should bedict[str, str] | Iterable[str | tuple[str, str]].Despite the docs being vague about it, this is a valid usage supported by the django-filter code.