Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pyright issues after pyright update #645

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def check_bioimageio_yaml(
downloaded_source = download(source)
root = downloaded_source.original_root
with downloaded_source.path.open(encoding="utf-8") as f:
data: Union[Any, Dict[Any, Any]] = yaml.load(f)
data: Dict[Any, Any] = yaml.load(f)

assert isinstance(data, dict), type(data)
format_version = "latest" if as_latest else "discover"
Expand Down Expand Up @@ -205,6 +205,7 @@ def check_bioimageio_yaml(
deserialized = rd.model_dump(
mode="json", exclude=exclude_from_comp, exclude_unset=True
)

expect_back = {k: v for k, v in data.items() if k not in exclude_from_comp}
assert_rdf_dict_equal(
deserialized, expect_back, f"roundtrip {source}\n", ignore_known_rdf_diffs=True
Expand Down
Loading