djangorestframework-stubs icon indicating copy to clipboard operation
djangorestframework-stubs copied to clipboard

[Enhancement] Make APISettings a generic class.

Open PedroPerpetua opened this issue 1 year ago • 0 comments

Some modules designed to work with DRF subclass the restframework.settings.APISettings class to implement their own custom settings (for example, djangorestframework-simplejwt). This class has the expected settings keys "hardcoded" into the class itself, making subclasses have to type-ignore when using their own Settings TypedDict or have some incompatible override.

The class could be made generic so subclasses pass their own TypedDict of settings.

PedroPerpetua avatar Mar 14 '23 22:03 PedroPerpetua