File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- from collections .abc import ByteString
21from typing import Optional
32
4- from typing_extensions import deprecated # added in 3.13
3+ from typing_extensions import (
4+ Buffer , # added in 3.12,
5+ deprecated , # added in 3.13
6+ )
57
68@deprecated ("since 2.2.0. Use the new API instead, which only requires display init" )
79def init () -> None : ...
@@ -12,7 +14,7 @@ def get(data_type: str, /) -> Optional[bytes]: ...
1214@deprecated ("since 2.2.0. Use the new API instead, which only supports strings" )
1315def get_types () -> list [str ]: ...
1416@deprecated ("since 2.2.0. Use the new API instead: `pygame.scrap.put_text`" )
15- def put (data_type : str , data : ByteString , / ) -> None : ...
17+ def put (data_type : str , data : Buffer , / ) -> None : ...
1618@deprecated ("since 2.2.0. Use the new API instead: `pygame.scrap.has_text`" )
1719def contains (data_type : str , / ) -> bool : ...
1820@deprecated ("since 2.2.0. Use the new API instead, which uses system clipboard" )
You can’t perform that action at this time.
0 commit comments