EnkaNetwork.py icon indicating copy to clipboard operation
EnkaNetwork.py copied to clipboard

Type Mismatch Error: Expected type `Cache`, got `StaticCache` instead

Open luoshuijs opened this issue 10 months ago • 0 comments

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.

luoshuijs avatar Sep 06 '23 02:09 luoshuijs