Skip to content

Commit

Permalink
import Hashable from collections.abc instead of collections.
Browse files Browse the repository at this point in the history
  • Loading branch information
li-zhi committed Aug 4, 2023
1 parent 72b8b0a commit 3ff0e1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/vmaf/tools/decorator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import collections
from collections.abc import Hashable
from functools import partial
import os

Expand Down Expand Up @@ -70,7 +70,7 @@ def __init__(self, func):
self.cache = {}

def __call__(self, *args):
if not isinstance(args, collections.Hashable):
if not isinstance(args, Hashable):
return self.func(*args)
if args in self.cache:
return self.cache[args]
Expand Down

0 comments on commit 3ff0e1a

Please sign in to comment.