Commit 156e55a0 authored by Tobias Hangleiter's avatar Tobias Hangleiter
Browse files

Replace type hint Generator by Iterator

Generator requires three arguments. Iterator[str] is equivalent to
Generator[str, None, None].
parent e945e70b
"""Programming tools"""
import shelve
from typing import Callable, Generator, Any
from typing import Callable, Iterator, Any
import inspect
import tempfile
import os.path
......@@ -14,7 +14,7 @@ from qutil.itertools import separate_iterator
__all__ = ["file_cache", "lru_cache"]
def to_key(obj: Any) -> Generator[str]:
def to_key(obj: Any) -> Iterator[str]:
"""Convert to a string representation that is unique except for
- lists and ndarrays are treated the same
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment