Skip to content
Merged
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
9 changes: 3 additions & 6 deletions syft/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,22 +645,19 @@ 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.
This function collects information about the runtime environment including
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.
Expand Down
Loading