From 89998b309e5b502002cbe9f5ef75b338b820cd25 Mon Sep 17 00:00:00 2001 From: jmcouffin Date: Thu, 9 Nov 2023 21:30:24 +0100 Subject: [PATCH] code cleaning for docstrings samples --- pyrevitlib/pyrevit/forms/__init__.py | 5 +---- pyrevitlib/pyrevit/revit/ui.py | 4 ---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/pyrevitlib/pyrevit/forms/__init__.py b/pyrevitlib/pyrevit/forms/__init__.py index 417a7e3cf..fdf433ced 100644 --- a/pyrevitlib/pyrevit/forms/__init__.py +++ b/pyrevitlib/pyrevit/forms/__init__.py @@ -186,9 +186,6 @@ def load_xaml(self, xaml_source, literal_string=False, handle_esc=True, set_owne Defaults to True. set_owner (bool, optional): Whether to se the window owner. Defaults to True. - - Returns: - None """ # create new id for this window self.window_id = coreutils.new_uuid() @@ -206,7 +203,7 @@ def load_xaml(self, xaml_source, literal_string=False, handle_esc=True, set_owne WPFWindow.setup_resources(self) if handle_esc: self.setup_default_handlers() - return None + def _determine_xaml(self, xaml_source): xaml_file = xaml_source diff --git a/pyrevitlib/pyrevit/revit/ui.py b/pyrevitlib/pyrevit/revit/ui.py index 6cff3cc0d..d4ae1d367 100644 --- a/pyrevitlib/pyrevit/revit/ui.py +++ b/pyrevitlib/pyrevit/revit/ui.py @@ -138,15 +138,11 @@ def set_current_theme(theme='Dark'): Args: theme (str, optional): The theme to set. Defaults to 'Dark'. - - Returns: - None """ if theme == 'Dark': UIThemeManager.CurrentTheme = UITheme.Dark else: UIThemeManager.CurrentTheme = UITheme.Light - return None def resolve_icon_file(directory, icon_name):