mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-11 06:21:58 +08:00
move generated stubs to separate directory, too messty
This commit is contained in:
16
django-stubs-generated/db/models/fields/mixins.pyi
Normal file
16
django-stubs-generated/db/models/fields/mixins.pyi
Normal file
@@ -0,0 +1,16 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.db.models.base import Model
|
||||
|
||||
NOT_PROVIDED: Any
|
||||
|
||||
class FieldCacheMixin:
|
||||
def get_cache_name(self) -> None: ...
|
||||
def get_cached_value(
|
||||
self, instance: Model, default: Any = ...
|
||||
) -> Optional[Model]: ...
|
||||
def is_cached(self, instance: Model) -> bool: ...
|
||||
def set_cached_value(
|
||||
self, instance: Model, value: Optional[Model]
|
||||
) -> None: ...
|
||||
def delete_cached_value(self, instance: Model) -> None: ...
|
||||
Reference in New Issue
Block a user