mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Add @type_check_only to stub-only private classes in stdlib (#14512)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import io
|
||||
from typing import Any, Protocol
|
||||
from typing import Any, Protocol, type_check_only
|
||||
|
||||
@type_check_only
|
||||
class _IOBytes(Protocol):
|
||||
def read(self, size: int, /) -> bytes: ...
|
||||
def seek(self, size: int, whence: int = ..., /) -> Any: ...
|
||||
|
||||
Reference in New Issue
Block a user