mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-02 06:00:24 +08:00
Add @type_check_only to stub-only private classes in stdlib (#14512)
This commit is contained in:
+2
-1
@@ -1,8 +1,9 @@
|
||||
from _typeshed import ReadableBuffer, SupportsNoArgReadline, SupportsRead, SupportsWrite
|
||||
from typing import Protocol
|
||||
from typing import Protocol, type_check_only
|
||||
|
||||
__all__ = ["encode", "decode", "encodestring", "decodestring"]
|
||||
|
||||
@type_check_only
|
||||
class _Input(SupportsRead[bytes], SupportsNoArgReadline[bytes], Protocol): ...
|
||||
|
||||
def encode(input: _Input, output: SupportsWrite[bytes], quotetabs: int, header: bool = False) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user