From b7bc9196080b4076835e2156e1427f2e86688303 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 27 Dec 2020 17:31:08 +0100 Subject: [PATCH] Fix docstrings --- resources/lib/library_sync/sections.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/resources/lib/library_sync/sections.py b/resources/lib/library_sync/sections.py index 817b724b..84576a6f 100644 --- a/resources/lib/library_sync/sections.py +++ b/resources/lib/library_sync/sections.py @@ -97,15 +97,13 @@ class Section(object): "}}").format(self=self) def __bool__(self): - """Magic method to compare sections with =. section_id, name and - section_type must be set and be identical.""" + """bool(Section) returns True if section_id, name and section_type are set.""" return (self.section_id is not None and self.name is not None and self.section_type is not None) def __eq__(self, section): - """Sections compare equal if their section_id, name and plex_type (first - prio) OR section_type (if there is no plex_type is set) compare equal. + """Sections compare equal if their section_id, name and plex_type (first prio) OR section_type (if there is no plex_type is set) compare equal. """ return (self.section_id == section.section_id and self.name == section.name and