Skip to content

[Enhancement] Make APISettings a generic class. #375

@PedroPerpetua

Description

@PedroPerpetua

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions