Skip to content

Commit

Permalink
Fix SIM117
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartappli authored Jun 29, 2024
1 parent 5c3a3ab commit 0abb7c1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/syft/src/syft/serde/capnp.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@


def get_capnp_schema(schema_file: str) -> type:
with as_file(files("syft.capnp").joinpath(schema_file)) as capnp_path:
with std_stream_capture():
return capnp.load(str(capnp_path.absolute()))
with (
as_file(files("syft.capnp").joinpath(schema_file)) as capnp_path,
std_stream_capture(),
):
return capnp.load(str(capnp_path.absolute()))

0 comments on commit 0abb7c1

Please sign in to comment.