Skip to content

Commit 86cd00a

Browse files
committed
Add hints for cache attributes missing upstream
1 parent 0f5dd4e commit 86cd00a

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
@@ -113,6 +113,12 @@ def get_reverse_key_func(
113113

114114
class MySQLCache(BaseDatabaseCache):
115115

116+
# Types missing from django-stubs:
117+
# https://github.com/typeddjango/django-stubs/pull/1117
118+
_missing_key: object
119+
_cull_frequency: int
120+
_max_entries: int
121+
116122
# Got an error with the add() query using BIGINT_UNSIGNED_MAX, so use a
117123
# value slightly 1 bit less (still an incalculable time into the future of
118124
# 1970)

0 commit comments

Comments
 (0)