mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 01:45:59 +08:00
initial commit
This commit is contained in:
9
django/db/models/fields/mixins.pyi
Normal file
9
django/db/models/fields/mixins.pyi
Normal file
@@ -0,0 +1,9 @@
|
||||
from django.db.models.base import Model
|
||||
from typing import Any
|
||||
|
||||
|
||||
class FieldCacheMixin:
|
||||
def delete_cached_value(self, instance: Model) -> None: ...
|
||||
def get_cached_value(self, instance: Model, default: object = ...) -> Any: ...
|
||||
def is_cached(self, instance: Model) -> bool: ...
|
||||
def set_cached_value(self, instance: Model, value: Any) -> None: ...
|
||||
Reference in New Issue
Block a user