Skip to content

Commit

Permalink
Fix minor docstring issues
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garner-canonical committed Oct 3, 2024
1 parent 30bee93 commit 568ecdd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ops/pebble.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 568ecdd

Please sign in to comment.