In the following function defined within the above:
def get_redirected_authors(authors: list["Author"]):
keys = [a.type.key for a in authors]
if any(k != "/type/author" for k in keys):
seen: set[dict] = set()
all_authors = [walk_redirects(a, seen) for a in authors if a["key"] not in seen]
return all_authors
return authors
set[dict] is wrong, because dictionaries are not hashable and cannot be used as set members. I read into the source code, and as far as I can deduce, it should be a set of strings instead. I'm not familiar with the infrastructure of this project, however, so this may be incorrect.
Parent: python/typeshed#15754
In the following function defined within the above:
set[dict]is wrong, because dictionaries are not hashable and cannot be used as set members. I read into the source code, and as far as I can deduce, it should be a set of strings instead. I'm not familiar with the infrastructure of this project, however, so this may be incorrect.Parent: python/typeshed#15754