File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,5 @@ django_filters.fields.RangeField.__init__
15
15
django_filters.filters.QuerySetRequestMixin.__init__
16
16
django_filters.widgets.CSVWidget.__init__
17
17
18
- # FIXME: new stubtest errors from mypy v1.18.1 that need to be looked at more closely.
19
- # See https://github.com/python/typeshed/pull/14699
18
+ # BaseCSVFilter constructs a custom class dynamically, which stubtest can't handle.
20
19
django_filters(\.\w+)*\.OrderingFilter.field_class
Original file line number Diff line number Diff line change @@ -292,7 +292,10 @@ class LookupChoiceFilter(Filter):
292
292
def filter (self , qs : QuerySet [Any ], lookup : Lookup ) -> QuerySet [Any ]: ...
293
293
294
294
class OrderingFilter (BaseCSVFilter , ChoiceFilter ):
295
- field_class : type [BaseCSVField ] # Inherits CSV field behavior for comma-separated ordering
295
+ # Inherits CSV field behavior for comma-separated ordering.
296
+ # BaseCSVFilter constructs a custom ConcreteCSVField class that derives
297
+ # from BaseCSVField.
298
+ field_class : type [BaseCSVField ]
296
299
descending_fmt : str
297
300
param_map : dict [str , str ] | None
298
301
def __init__ (
You can’t perform that action at this time.
0 commit comments