mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-18 20:11:23 +08:00
Add @type_check_only to stub-only private classes in various third-party stubs (#15535)
This commit is contained in:
1 parent
222da0600f
commit
282b1a838a
15 files changed
+56
-18
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Type aliases used in this stub package
|
||||
from _typeshed import SupportsWrite
|
||||
from typing import Any, Protocol
|
||||
from typing import Any, Protocol, type_check_only
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
Box: TypeAlias = tuple[tuple[int, int], tuple[int, int]]
|
||||
@@ -11,5 +11,6 @@ Ink: TypeAlias = tuple[int, int, int] | tuple[int, int, int, int]
|
||||
ErrorCorrect: TypeAlias = int
|
||||
MaskPattern: TypeAlias = int
|
||||
|
||||
@type_check_only
|
||||
class Writeable(SupportsWrite[bytes], Protocol):
|
||||
def seek(self, offset: int, /) -> Any: ...
|
||||
Reference in new issue
Block a user