Skip to content
New issue

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

Type Mismatch Error: Expected type Cache, got StaticCache instead #52

Open
luoshuijs opened this issue Sep 6, 2023 · 0 comments
Open

Comments

@luoshuijs
Copy link

Description

I encountered a type error.

20230906102735

Upon reviewing the code, I found that StaticCache doesn't inherit from Cache. This seems to be the root cause of the type mismatch.

Fix

class Cache:
    # ... Cache methods and properties ...

class StaticCache(Cache):
    # ... StaticCache methods and properties ...

This will make StaticCache a subclass of Cache and should resolve the type mismatch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant