Skip to content

Commit ec3081c

Browse files
committed
Fix cachedprotocolmeta typing
1 parent 0cf6f2a commit ec3081c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numcodecs/ndarray_like.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Any, ClassVar, Optional, Protocol, runtime_checkable
22

33

4-
class _CachedProtocolMeta(type):
4+
class _CachedProtocolMeta(Protocol.__class__): # type: ignore[name-defined]
55
"""Custom implementation of @runtime_checkable
66
77
The native implementation of @runtime_checkable is slow,

0 commit comments

Comments
 (0)