Skip to content

Commit

Permalink
Merge pull request #1998 from eirannejad/develop
Browse files Browse the repository at this point in the history
fixing griffe errors during mkdocs building of pages
  • Loading branch information
jmcouffin committed Nov 9, 2023
2 parents cb27a23 + 2ec4ea2 commit 89370be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions pyrevitlib/pyrevit/forms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,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
Expand Down
2 changes: 1 addition & 1 deletion pyrevitlib/pyrevit/revit/selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def get_picked_elements_by_category(cat_name_or_builtin, message=''):
message (str, optional): message to display while picking elements.
Yields:
The picked elements from the specified category.
(DB.Element): The picked elements from the specified category.
"""
picked_element = True
while picked_element:
Expand Down
9 changes: 5 additions & 4 deletions pyrevitlib/pyrevit/revit/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_mainwindow():
"""Get the main window of the application.
Returns:
The root visual of the main window.
(MainWindow): The root visual of the main window.
"""
try:
hwnd_source = Interop.HwndSource.FromHwnd(HOST_APP.proc_window)
Expand Down Expand Up @@ -60,7 +60,7 @@ def set_statusbar_text(text):
text (str): The text to be displayed in the status bar.
Returns:
bool: True if the text was successfully set, False otherwise.
(bool): True if the text was successfully set, False otherwise.
"""
status_bar_ptr = get_statusbar_hwnd()

Expand Down Expand Up @@ -128,7 +128,7 @@ def get_current_theme():
"""Get the current UI theme.
Returns:
UITheme: The current UI theme.
UITheme (UITheme): The current UI theme.
"""
return UIThemeManager.CurrentTheme

Expand All @@ -146,6 +146,7 @@ def set_current_theme(theme='Dark'):
UIThemeManager.CurrentTheme = UITheme.Dark
else:
UIThemeManager.CurrentTheme = UITheme.Light
return None


def resolve_icon_file(directory, icon_name):
Expand All @@ -156,7 +157,7 @@ def resolve_icon_file(directory, icon_name):
icon_name (str): The name of the icon file.
Returns:
str: The full file path of the icon file.
full_file_path (str): The full file path of the icon file.
"""
full_file_path = op.join(directory, icon_name)

Expand Down

0 comments on commit 89370be

Please sign in to comment.