Skip to content

Commit 2592759

Browse files
committed
Add hints for cache attributes missing upstream
1 parent fc2cca5 commit 2592759

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/django_mysql/cache.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ def get_reverse_key_func(
105105

106106
class MySQLCache(BaseDatabaseCache):
107107

108+
# Types missing from django-stubs:
109+
# https://github.com/typeddjango/django-stubs/pull/1117
110+
_missing_key: object
111+
_cull_frequency: int
112+
_max_entries: int
113+
108114
# Got an error with the add() query using BIGINT_UNSIGNED_MAX, so use a
109115
# value slightly 1 bit less (still an incalculable time into the future of
110116
# 1970)

0 commit comments

Comments
 (0)