EnkaNetwork.py
EnkaNetwork.py copied to clipboard
Type Mismatch Error: Expected type `Cache`, got `StaticCache` instead
Description
I encountered a type error.
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.