From 568ecdd917c3dd148617161e2d6d356e53698d4c Mon Sep 17 00:00:00 2001 From: James Garner Date: Thu, 3 Oct 2024 16:06:33 +1300 Subject: [PATCH] Fix minor docstring issues --- ops/pebble.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ops/pebble.py b/ops/pebble.py index 9f26450e6..1e0f3a90c 100644 --- a/ops/pebble.py +++ b/ops/pebble.py @@ -1319,10 +1319,10 @@ class FileInfo: """Base name of the file.""" type: FileType - """Type of the file (FileType.FILE, FileType.DIRECTORY, FileType.SYMLINK, etc).""" + """Type of the file.""" size: Optional[int] - """Size of the file (will be 0 if ``type`` is not "file").""" + """Size of the file (will be 0 if :attr:`type` is not :attr:`FileType.FILE`).""" permissions: int """Unix permissions of the file.""" @@ -1508,7 +1508,7 @@ class NoticeType(enum.Enum): """ UNKNOWN = 'unknown' - """Used if we receive an unrecognised notice type (e.g. from future Pebble versions).""" + """Used if we receive an unrecognised notice type, for example from future Pebble versions.""" class NoticesUsers(enum.Enum):