mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-13 20:00:52 +08:00
Add @type_check_only to stub-only private classes in stdlib (#14512)
This commit is contained in:
@@ -39,6 +39,7 @@ from typing import (
|
||||
final,
|
||||
overload,
|
||||
runtime_checkable,
|
||||
type_check_only,
|
||||
)
|
||||
from typing_extensions import Self, TypeAlias, Unpack, deprecated
|
||||
|
||||
@@ -1241,6 +1242,7 @@ def replace(
|
||||
) -> None: ...
|
||||
def rmdir(path: StrOrBytesPath, *, dir_fd: int | None = None) -> None: ...
|
||||
@final
|
||||
@type_check_only
|
||||
class _ScandirIterator(Generic[AnyStr]):
|
||||
def __del__(self) -> None: ...
|
||||
def __iter__(self) -> Self: ...
|
||||
|
||||
Reference in New Issue
Block a user