Mark stub-only private symbols as @type_check_only in third-party stubs (#14545)

This commit is contained in:
Brian Schubert authored and GitHub committed 2025-08-08 11:29:48 +02:00
1 parent a358dc24e8
commit 81c8fcb2e6
131 files changed
+334 -147

No files matched your search

+2 -1
View File
@@ -3,7 +3,7 @@ import xml.dom.minidom
from abc import abstractmethod
from collections import Counter
from collections.abc import Callable, Generator, Iterable, Iterator, Mapping, Sequence
from typing import Any, ClassVar, Final, Literal, Protocol, SupportsIndex, TypeVar, overload
from typing import Any, ClassVar, Final, Literal, Protocol, SupportsIndex, TypeVar, overload, type_check_only
from typing_extensions import Self, TypeAlias
from docutils.frontend import Values
@@ -12,6 +12,7 @@ from docutils.utils import Reporter
_N = TypeVar("_N", bound=Node)
@type_check_only
class _DomModule(Protocol):
Document: type[xml.dom.minidom.Document]