From 3290e45ccc10ba1c9e4286cff64d9cc93dec32c7 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 31 Oct 2024 22:21:57 +0100 Subject: [PATCH] Apply ruff rule RUF022 RUF022 `__all__` is not sorted --- sphinx/ext/intersphinx/__init__.py | 18 +++++++++--------- sphinx/theming.py | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sphinx/ext/intersphinx/__init__.py b/sphinx/ext/intersphinx/__init__.py index bd8eee3aa0a..4ad04191819 100644 --- a/sphinx/ext/intersphinx/__init__.py +++ b/sphinx/ext/intersphinx/__init__.py @@ -19,20 +19,20 @@ from __future__ import annotations __all__ = ( + 'IntersphinxDispatcher', + 'IntersphinxRole', + 'IntersphinxRoleResolver', 'InventoryAdapter', 'fetch_inventory', - 'load_mappings', - 'validate_intersphinx_mapping', - 'IntersphinxRoleResolver', - 'inventory_exists', + 'inspect_main', 'install_dispatcher', - 'resolve_reference_in_inventory', + 'inventory_exists', + 'load_mappings', + 'missing_reference', 'resolve_reference_any_inventory', 'resolve_reference_detect_inventory', - 'missing_reference', - 'IntersphinxDispatcher', - 'IntersphinxRole', - 'inspect_main', + 'resolve_reference_in_inventory', + 'validate_intersphinx_mapping', ) from typing import TYPE_CHECKING diff --git a/sphinx/theming.py b/sphinx/theming.py index 7f1c53d1ebc..d457129e123 100644 --- a/sphinx/theming.py +++ b/sphinx/theming.py @@ -2,7 +2,7 @@ from __future__ import annotations -__all__ = ('Theme', 'HTMLThemeFactory') +__all__ = ('HTMLThemeFactory', 'Theme') import configparser import contextlib