File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -244,8 +244,6 @@ module = [
244244 # tests/test_theming
245245 " tests.test_theming.test_templating" ,
246246 " tests.test_theming.test_theming" ,
247- # tests/test_transforms
248- " tests.test_transforms.test_transforms_post_transforms_images" ,
249247]
250248disallow_untyped_defs = false
251249
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
33from types import SimpleNamespace
4+ from typing import TYPE_CHECKING
45
56from docutils import nodes
67
78from sphinx .transforms .post_transforms .images import ImageConverter
89from sphinx .util .docutils import new_document
910
11+ if TYPE_CHECKING :
12+ from pathlib import Path
13+
1014WEBP_DATA = (
1115 b'RIFF\xa8 \x01 \x00 \x00 WEBPVP8X\n \x00 \x00 \x00 '
1216 b"\x10 \x00 \x00 \x00 \x0f \x00 \x00 \x0f \x00 \x00 ALPH\xc3 \x00 \x00 \x00 \x01 '"
3337)
3438
3539
36- def test_guess_mimetype_webp (tmp_path ) :
40+ def test_guess_mimetype_webp (tmp_path : Path ) -> None :
3741 document = new_document ('<source>' )
3842 document .settings .env = SimpleNamespace (srcdir = tmp_path )
3943 converter = ImageConverter (document )
You can’t perform that action at this time.
0 commit comments