mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-01 21:50:21 +08:00
Add @type_check_only to various typeshed-only procotols in stdlib (#14465)
Mark various typeshed-only protocols as `@type_check_only` in stdlib
This commit is contained in:
+2
-1
@@ -1,9 +1,10 @@
|
||||
from _typeshed import StrPath
|
||||
from collections.abc import Callable
|
||||
from typing import Any, BinaryIO, Protocol, overload
|
||||
from typing import Any, BinaryIO, Protocol, overload, type_check_only
|
||||
|
||||
__all__ = ["what"]
|
||||
|
||||
@type_check_only
|
||||
class _ReadableBinary(Protocol):
|
||||
def tell(self) -> int: ...
|
||||
def read(self, size: int, /) -> bytes: ...
|
||||
|
||||
Reference in New Issue
Block a user