diff options
| author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-12-30 20:14:18 +0000 |
|---|---|---|
| committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-01-01 20:48:37 +0000 |
| commit | f4c8a0a68e0013808d169357c9f77ebdf19d0f4e (patch) | |
| tree | f952fa0106f7b93db5b5a21b801f12566f2ebaee /sphinx/testing | |
| parent | 0b1efd7756e05b238c28c62e3946a222cacbd229 (diff) | |
| download | sphinx-git-f4c8a0a68e0013808d169357c9f77ebdf19d0f4e.tar.gz | |
Insert ``from __future__ import annotations``
Diffstat (limited to 'sphinx/testing')
| -rw-r--r-- | sphinx/testing/comparer.py | 2 | ||||
| -rw-r--r-- | sphinx/testing/fixtures.py | 2 | ||||
| -rw-r--r-- | sphinx/testing/path.py | 2 | ||||
| -rw-r--r-- | sphinx/testing/util.py | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/sphinx/testing/comparer.py b/sphinx/testing/comparer.py index 09e8364bd..142d15348 100644 --- a/sphinx/testing/comparer.py +++ b/sphinx/testing/comparer.py @@ -1,4 +1,6 @@ """Sphinx test comparer for pytest""" +from __future__ import annotations + import difflib import pathlib from typing import Any, List, Union diff --git a/sphinx/testing/fixtures.py b/sphinx/testing/fixtures.py index 88e1bec9b..41550d393 100644 --- a/sphinx/testing/fixtures.py +++ b/sphinx/testing/fixtures.py @@ -1,5 +1,7 @@ """Sphinx test fixtures for pytest""" +from __future__ import annotations + import subprocess import sys from collections import namedtuple diff --git a/sphinx/testing/path.py b/sphinx/testing/path.py index 40de6f069..7c4eb7f2b 100644 --- a/sphinx/testing/path.py +++ b/sphinx/testing/path.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import builtins import os import shutil diff --git a/sphinx/testing/util.py b/sphinx/testing/util.py index 6f0b79810..eb45d42a0 100644 --- a/sphinx/testing/util.py +++ b/sphinx/testing/util.py @@ -1,4 +1,6 @@ """Sphinx test suite utilities""" +from __future__ import annotations + import functools import os import re |
