We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Django 3.2+ source code in core/cache/backends/memcached.py there's:
class PyMemcacheCache(BaseMemcachedCache): """An implementation of a cache binding using pymemcache.""" def __init__(self, server, params): import pymemcache.serde super().__init__(server, params, library=pymemcache, value_not_found_exception=KeyError) self._class = self._lib.HashClient self._options = { 'allow_unicode_keys': True, 'default_noreply': False, 'serde': pymemcache.serde.pickle_serde, **self._options, }
but in stubs in core/cache/backends/memcached.pyi there is no stub for PyMemcacheCache.
I believe the missing part in core/cache/backends/memcached.pyi is:
class PyMemcacheCache(BaseMemcachedCache): def __init__(self, server: Union[str, Sequence[str]], params: Dict[str, Any]) -> None: ...
python
django
mypy
django-stubs
django-stubs-ext
The text was updated successfully, but these errors were encountered:
Add support for django.core.cache.backends.memcached.PyMemcacheCache
django.core.cache.backends.memcached.PyMemcacheCache
1bb7502
Fixes typeddjango#1284.
Add support for django.core.cache.backends.memcached.PyMemcacheCache (
e731b36
#1314) Fixes #1284.
Thank you.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug report
What's wrong
In Django 3.2+ source code in core/cache/backends/memcached.py there's:
but in stubs in core/cache/backends/memcached.pyi there is no stub for PyMemcacheCache.
How is that should be
I believe the missing part in core/cache/backends/memcached.pyi is:
System information
python
version: 3.8.13django
version: 3.2.16mypy
version: 0.991django-stubs
version: 1.13.0django-stubs-ext
version: 0.7.0The text was updated successfully, but these errors were encountered: