mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Remove unneeded runtime typing imports (#13233)
This commit is contained in:
@@ -6,7 +6,10 @@ source file translated by test_build.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing import Any
|
||||
|
||||
import pytest
|
||||
|
||||
|
@@ -38,9 +38,6 @@ from tests.test_util.intersphinx_data import (
|
||||
)
|
||||
from tests.utils import http_server
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing import NoReturn
|
||||
|
||||
|
||||
class FakeList(list): # NoQA: FURB189
|
||||
def __iter__(self) -> NoReturn:
|
||||
@@ -744,6 +741,8 @@ def test_intersphinx_role(app):
|
||||
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing import NoReturn
|
||||
|
||||
from sphinx.ext.intersphinx._shared import InventoryCacheEntry
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user