Comments (6)
I've removed the py.typed file for the next 0.x release, so it go back to being untyped.
We'll focus on getting the type annotations working for the 1.0 release.
from aiocache.
Pretty sure 0.11 has no typing, so it's not a regression.
That class does some weirdness with __new__()
, maybe adding annotations to that method will get mypy to figure it out. Otherwise, I think that's due for a refactor to make the implementation a bit simpler. There are already some tasks open to refactor parts for the 1.0 release, if you've got any time to help out and look at some of those, that'd help get us there quicker.
from aiocache.
Yes, I was not correct in my takes. 0.11 has no typing, but mypy returned issues about that Cache instance doesn't have some attributes. I will try chech it if I have a free time. Thanks
from aiocache.
I just had a quick check, if I try to annotate __new__()
I get more errors (e.g. that it must return a subclass of Cache
, but it's actually returning a subclass of BaseCache
).
I think refactoring this for 1.0 is going to be the best option. Maybe we should just remove the Cache
class completely and get users to import the actual cache implementation they want to use? Would likely make things a lot simpler.
from aiocache.
Hi,
after upgrade from 0.12.0 to 0.12.1, I have this mypy error
Skipping analyzing "aiocache": module is installed, but missing library stubs or py.typed marker [import]
from aiocache.
See the comments above. I've disabled typing support until v1.
from aiocache.
Related Issues (20)
- Type issues with VS Code + aiocache HOT 1
- Make it possible to run tests with a subset of dependencies HOT 5
- Cache key based on "self" in @cached decorator might not always be unique HOT 1
- [Question] Reuse decorator settings + Race Conditions
- "No module named 'redis.asyncio'" when trying to build with docker HOT 1
- Passing username to Redis in decorators HOT 1
- Redis cache decorator fail on Python3.11 HOT 2
- Create Multiple caches HOT 3
- New release HOT 1
- Preserve function signature with decorator HOT 3
- set_cache default does not work with plugins HOT 2
- Unsupported operand type(s) for +: 'float' and 'SimpleMemoryCache' HOT 3
- UnicodeDecodeError when using MsgPackSerializer HOT 7
- Error -2 connecting to redis server docker HOT 1
- Caching mutable function outputs HOT 3
- Test failures with Python 3.13.0b2 HOT 2
- TypeError: issubclass() arg 1 must be a class HOT 1
- cached_decorator.py sample is not suitable for latest version HOT 1
- Redis to valkey? HOT 1
- Publish of new patch version containing fixes for aiohttp HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiocache.