Skip to content

Commit 19450e0

Browse files
Merge pull request #19 from mbleandro/main
Fix compat import
2 parents b26e27a + 4bc3989 commit 19450e0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/yapcache/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from dataclasses import dataclass
33
from functools import wraps
44
from typing import Generic
5-
from compat import StrEnum
65

76

87
from typing_extensions import (
@@ -18,6 +17,7 @@
1817

1918
from yapcache.cache_item import CacheItem
2019
from yapcache.caches import Cache
20+
from yapcache.compat import StrEnum
2121
from yapcache.distlock import DistLock, NullLock
2222

2323
P = ParamSpec("P")

src/yapcache/distlock.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
from redis.asyncio import Redis
55
from typing_extensions import override
6-
from compat import StrEnum
6+
7+
from yapcache.compat import StrEnum
78

89

910
class ReleasedLock(StrEnum):

0 commit comments

Comments
 (0)