Skip to content

Commit a680b53

Browse files
committed
fix typing
1 parent 7146aea commit a680b53

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/bioimageio/spec/_description_impl.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
def get_rd_class_impl(
2323
typ: Any,
2424
format_version: Any,
25-
descriptions_map: Mapping[
26-
Optional[str], Mapping[Optional[str], Type[ResourceDescrT]]
27-
],
25+
descriptions_map: Mapping[Optional[str], Mapping[str, Type[ResourceDescrT]]],
2826
) -> Type[ResourceDescrT]:
2927
"""get the resource description class for the given type and format version"""
3028
assert None in descriptions_map
@@ -50,7 +48,7 @@ def get_rd_class_impl(
5048
if use_format_version not in descr_versions:
5149
raise ValueError(
5250
f"Unsupported format version '{format_version}' for type '{typ}'. "
53-
f"Supported format versions are: {', '.join(sorted(fv for fv in descr_versions if fv is not None))}"
51+
+ f"Supported format versions are: {', '.join(sorted(fv for fv in descr_versions))}"
5452
)
5553

5654
return descr_versions[use_format_version]

0 commit comments

Comments
 (0)