mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-01 23:43:46 +08:00
Mark stub-only private symbols as @type_check_only in third-party stubs (#14545)
This commit is contained in:
1 parent
a358dc24e8
commit
81c8fcb2e6
131 files changed
+334
-147
No files matched your search
@@ -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]
|
||||
|
||||
|
||||
Reference in new issue
Block a user