Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartappli authored Jun 30, 2024
1 parent 6331932 commit a845672
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/syft/src/syft/service/policy/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,12 +896,11 @@ def new_getfile(object: Any) -> Any: # TODO: fix the mypy issue
and object.__qualname__ + "." + member.__name__ == member.__qualname__
):
return inspect.getfile(member)
else:
raise TypeError(f"Source for {object!r} not found")
raise TypeError(f"Source for {object!r} not found")


def get_code_from_class(policy: type[CustomPolicy]) -> str:
klasses = [inspect.getmro(policy)[0]] #
klasses = [inspect.getmro(policy)[0]]
whole_str = ""
for klass in klasses:
if is_interpreter_jupyter():
Expand Down

0 comments on commit a845672

Please sign in to comment.