From 4b5ef9b0e6be1e69ccb85b07bf9fb41eb9c28c51 Mon Sep 17 00:00:00 2001 From: Koen van der Veen <7250009+koenvanderveen@users.noreply.github.com> Date: Mon, 23 Nov 2026 13:03:37 +0100 Subject: [PATCH] fix: remove unused redact_paths param from bug_report bug_report() accepted redact_paths but never read it, and the report has no paths to redact. Also drop "paths" from the docstring line that said the report prints them, so it matches the printed NOTES line. Closes #9644 --- syft/utils.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/syft/utils.py b/syft/utils.py index 0a49e120691..57639e0d728 100644 --- a/syft/utils.py +++ b/syft/utils.py @@ -645,9 +645,7 @@ def _interpret_environment() -> dict[str, bool]: } -def bug_report( - as_dict: bool = False, redact_paths: bool = False -) -> dict[str, Any] | None: +def bug_report(as_dict: bool = False) -> dict[str, Any] | None: """ Generate a comprehensive environment snapshot for bug reports. @@ -655,12 +653,11 @@ def bug_report( OS details, Python configuration, virtual environments, package managers, installed packages, and Jupyter/Colab environment detection. - The output is safe to share: it prints only versions, paths, and config - metadata. No tokens, secrets, or sensitive credentials are included. + The output is safe to share: it prints only versions and config metadata. + No tokens, secrets, paths, or PII are included. Args: as_dict: If True, return the report as a dictionary instead of printing. - redact_paths: If True, redact user-specific paths in the output. Returns: If as_dict is True, returns a dictionary containing all collected info.