summaryrefslogtreecommitdiff
path: root/utils/sampler.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-01-07 19:55:00 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-01-07 20:16:09 +0800
commite5a73abd80578aa5e46d8d444466d1e6346ec6ec (patch)
tree9af6211c406e995a4c2129b931ad2a83bc05c0b5 /utils/sampler.py
parent98b6e6dc3be6f88abb72e351c8f2da2b23b8ab85 (diff)
Type hint for python version lower than 3.9
Diffstat (limited to 'utils/sampler.py')
-rw-r--r--utils/sampler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/sampler.py b/utils/sampler.py
index 734acf9..c1bf3dd 100644
--- a/utils/sampler.py
+++ b/utils/sampler.py
@@ -1,5 +1,5 @@
import random
-from collections.abc import Iterator
+from collections import Iterator
from typing import Union, Tuple
import numpy as np