Yiling-J / theine

high performance in-memory cache
BSD 3-Clause "New" or "Revised" License
364 stars 5 forks source link

Configure export classes #23

Closed k0t3n closed 3 months ago

k0t3n commented 3 months ago

Fix mypy warning

client/cache/memory.py:4: error: Module "theine" does not explicitly export attribute "Cache"  [attr-defined]

by explicitly defining export classes.

k0t3n commented 3 months ago

@Yiling-J btw thank for the library, great job.

Yiling-J commented 3 months ago

@k0t3n I conducted a simple test by creating a file and running mypy:

from theine import *
from theine import Cache

It didn't report any issues. Since I haven't used Python recently and I'm not familiar with mypy, could you please share how to reproduce the warning?

k0t3n commented 3 months ago

@Yiling-J

from theine import Cache
mypy example.py --strict
Yiling-J commented 3 months ago

@k0t3n v0.4.2 released

k0t3n commented 3 months ago

Thank you, that was fast 🚀