From f05a068be980b7f237135596c9414e4737052681 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Mon, 7 Mar 2022 15:17:45 +0000 Subject: [PATCH] Fix whitespace --- sphinx/ext/napoleon/docstring.py | 6 +----- sphinx/ext/napoleon/iterators.py | 6 +----- tests/test_ext_napoleon.py | 4 +--- tests/test_ext_napoleon_docstring.py | 4 +--- tests/test_ext_napoleon_iterators.py | 4 +--- 5 files changed, 5 insertions(+), 19 deletions(-) diff --git a/sphinx/ext/napoleon/docstring.py b/sphinx/ext/napoleon/docstring.py index c80baecba..a11424537 100644 --- a/sphinx/ext/napoleon/docstring.py +++ b/sphinx/ext/napoleon/docstring.py @@ -1,8 +1,4 @@ -""" - -Classes for docstring parsing and formatting. - -""" +"""Classes for docstring parsing and formatting.""" import collections import inspect diff --git a/sphinx/ext/napoleon/iterators.py b/sphinx/ext/napoleon/iterators.py index bebd56518..9459ad4a6 100644 --- a/sphinx/ext/napoleon/iterators.py +++ b/sphinx/ext/napoleon/iterators.py @@ -1,8 +1,4 @@ -""" - -A collection of helpful iterators. - -""" +"""A collection of helpful iterators.""" import collections from typing import Any, Iterable, Optional diff --git a/tests/test_ext_napoleon.py b/tests/test_ext_napoleon.py index bcc0d6d23..a1b98996f 100644 --- a/tests/test_ext_napoleon.py +++ b/tests/test_ext_napoleon.py @@ -1,6 +1,4 @@ -"""Tests for :mod:`sphinx.ext.napoleon.__init__` module. - -""" +"""Tests for :mod:`sphinx.ext.napoleon.__init__` module.""" import sys from collections import namedtuple diff --git a/tests/test_ext_napoleon_docstring.py b/tests/test_ext_napoleon_docstring.py index 514276061..ed97b6351 100644 --- a/tests/test_ext_napoleon_docstring.py +++ b/tests/test_ext_napoleon_docstring.py @@ -1,6 +1,4 @@ -"""Tests for :mod:`sphinx.ext.napoleon.docstring` module. - -""" +"""Tests for :mod:`sphinx.ext.napoleon.docstring` module.""" import re import sys diff --git a/tests/test_ext_napoleon_iterators.py b/tests/test_ext_napoleon_iterators.py index e9684521e..6b80af6bf 100644 --- a/tests/test_ext_napoleon_iterators.py +++ b/tests/test_ext_napoleon_iterators.py @@ -1,6 +1,4 @@ -"""Tests for :mod:`sphinx.ext.napoleon.iterators` module. - -""" +"""Tests for :mod:`sphinx.ext.napoleon.iterators` module.""" from unittest import TestCase