mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-03 06:28:28 +08:00
Add @type_check_only to stub-only private classes in various third-party stubs (#15535)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, ClassVar, Final, NamedTuple
|
||||
from typing import Any, ClassVar, Final, NamedTuple, type_check_only
|
||||
from typing_extensions import Self
|
||||
|
||||
from docutils.transforms import Transform
|
||||
@@ -6,6 +6,7 @@ from docutils.transforms import Transform
|
||||
__docformat__: Final = "reStructuredText"
|
||||
__version__: Final[str]
|
||||
|
||||
@type_check_only
|
||||
class _VersionInfo(NamedTuple):
|
||||
major: int
|
||||
minor: int
|
||||
|
||||
Reference in New Issue
Block a user