Skip to content

Commit 9760166

Browse files
committed
misc: Fix type hint
1 parent 61f10fc commit 9760166

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

devito/tools/memoization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def __call__(self, *args, **kwargs):
136136
Constructor = TypeVar('Constructor', bound=Callable[..., InstanceType])
137137

138138

139-
def weak_instance_cache(fun: Constructor[InstanceType]) -> Constructor[InstanceType]:
139+
def weak_instance_cache(fun: Constructor) -> Constructor:
140140
"""
141141
Decorator for a class method that caches instances based on the hash
142142
values of constructing arguments. The constructed values are stored

0 commit comments

Comments
 (0)