Base#
- class requests_cache.models.base.RichMixin[source]#
Bases:
object
Mixin that customizes output when pretty-printed with rich. Compared to default rich behavior for attrs classes, this does the following:
Inform rich about all default values so they will be excluded from output
Handle default value factories
Stringify datetime objects
Does not handle positional-only args (since we don’t currently have any)
Add a base repr that excludes default values even if rich isn’t installed