mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-11-03 12:48:34 -06:00
Further improve typing in tests/ (#12816)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
This commit is contained in:
1 parent
b6f818f600
commit
7546545876
7 files changed
+49
-37
No files matched your search
@@ -6,12 +6,12 @@ from unittest import mock
|
||||
import pytest
|
||||
|
||||
from sphinx.jinja2glue import BuiltinTemplateLoader
|
||||
from sphinx.util import strip_colors
|
||||
from sphinx.util.console import strip_colors
|
||||
from sphinx.util.fileutil import _template_basename, copy_asset, copy_asset_file
|
||||
|
||||
|
||||
class DummyTemplateLoader(BuiltinTemplateLoader):
|
||||
def __init__(self):
|
||||
def __init__(self) -> None:
|
||||
super().__init__()
|
||||
builder = mock.Mock()
|
||||
builder.config.templates_path = []
|
||||
|
||||
Reference in new issue
Block a user