Skip to content

Commit d89bf69

Browse files
committed
Format files for black stable style 2024
1 parent 76d1056 commit d89bf69

File tree

9 files changed

+9
-0
lines changed

9 files changed

+9
-0
lines changed

sphinxcontrib_django/docstrings/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* Fix the intersphinx mappings to the Django documentation
1515
(see :mod:`~sphinxcontrib_django.docstrings.patches`)
1616
"""
17+
1718
from __future__ import annotations
1819

1920
import importlib

sphinxcontrib_django/docstrings/attributes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module contains all functions which are used to improve the documentation of attributes.
33
"""
4+
45
from __future__ import annotations
56

67
from django.db import models

sphinxcontrib_django/docstrings/classes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module contains all functions which are used to improve the documentation of classes.
33
"""
4+
45
from __future__ import annotations
56

67
from typing import TYPE_CHECKING

sphinxcontrib_django/docstrings/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This module contains configuration of the members which should in-/excluded in sphinx
33
(see :event:`autodoc-skip-member`)
44
"""
5+
56
#: Ensure that the __init__ method gets documented (also see :confval:`autoclass_content` setting)
67
INCLUDE_MEMBERS = {"__init__"}
78

sphinxcontrib_django/docstrings/field_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
:mod:`~sphinxcontrib_django.docstrings.attributes` and
44
:mod:`~sphinxcontrib_django.docstrings.classes` modules.
55
"""
6+
67
from __future__ import annotations
78

89
from typing import TYPE_CHECKING

sphinxcontrib_django/docstrings/methods.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module contains all functions which are used to improve the documentation of methods.
33
"""
4+
45
import re
56

67
RE_GET_FOO_DISPLAY = re.compile(r"\.get_(?P<field>[a-zA-Z0-9_]+)_display$")

sphinxcontrib_django/docstrings/patches.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module contains patches for Django to improve its interaction with Sphinx.
33
"""
4+
45
import contextlib
56

67
from django import apps, forms, test

sphinxcontrib_django/roles.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"sphinxcontrib_django.roles",
2222
]
2323
"""
24+
2425
from __future__ import annotations
2526

2627
import logging

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
https://github.com/sphinx-doc/sphinx/issues/7008), so this setup was created using the given code
44
snippets and the existing test cases for the autodoc extension.
55
"""
6+
67
from unittest.mock import Mock
78

89
import pytest

0 commit comments

Comments
 (0)