mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
Mark stub-only private symbols as @type_check_only in third-party stubs (#14545)
This commit is contained in:
@@ -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