From 4ed425f544def1c27047744cda180323a9247c42 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Wed, 22 Apr 2026 13:24:08 +0200 Subject: [PATCH] report: add type hints to _read_maps Add type hints to `_read_maps`. --- apport/report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apport/report.py b/apport/report.py index c828c8b63..a31f7ed7b 100644 --- a/apport/report.py +++ b/apport/report.py @@ -198,7 +198,7 @@ def _read_proc_file(path: str, dir_fd: int) -> str: return "Error: " + str(error) -def _read_maps(proc_pid_fd): +def _read_maps(proc_pid_fd: int) -> str: """Read /proc/pid/maps. Since /proc/$pid/maps may become unreadable unless we are ptracing the