Skip to content

Commit 0d1e41f

Browse files
committed
Placate mypy
1 parent 96e2f36 commit 0d1e41f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sphinx/config.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,10 @@ def _validate_valid_types(
532532
return ()
533533
if isinstance(valid_types, (frozenset, ENUM)):
534534
return valid_types
535-
if isinstance(valid_types, type) or valid_types is Any:
535+
if isinstance(valid_types, type):
536536
return frozenset((valid_types,))
537+
if valid_types is Any:
538+
return frozenset({Any}) # type: ignore[arg-type]
537539
if isinstance(valid_types, set):
538540
return frozenset(valid_types)
539541
if not isinstance(valid_types, tuple):

0 commit comments

Comments
 (0)