File tree 2 files changed +9
-4
lines changed 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ class PyAccess:
11
11
image : Any
12
12
def __init__ (self , img , readonly : bool = ...) -> None : ...
13
13
def __setitem__ (self , xy , color ) -> None : ...
14
- def __getitem__ (self , xy ): ...
15
- putpixel : Any
16
- getpixel : Any
14
+ def __getitem__ (self , xy ) -> Any : ...
15
+ def putpixel ( self , xy , color ) -> None : ...
16
+ def getpixel ( self , xy ) -> Any : ...
17
17
def check_xy (self , xy ): ...
18
18
19
19
class _PyAccess32_2 (PyAccess ):
Original file line number Diff line number Diff line change 1
1
from _typeshed import Incomplete
2
2
from collections .abc import Sequence
3
+ from typing import Any
3
4
from typing_extensions import Literal
4
5
5
6
DEFAULT_STRATEGY : Literal [0 ]
@@ -14,7 +15,11 @@ class _PixelAccess:
14
15
# https://github.com/python-pillow/Pillow/blob/main/docs/reference/PixelAccess.rst
15
16
# The name is prefixed here with an underscore as PixelAccess is not
16
17
# runtime-importable.
17
- def __getattr__ (self , item : str ) -> Incomplete : ...
18
+
19
+ def __setitem__ (self , xy , color ) -> None : ...
20
+ def __getitem__ (self , xy ) -> Any : ...
21
+ def putpixel (self , xy , color ) -> None : ...
22
+ def getpixel (self , xy ) -> Any : ...
18
23
19
24
class _Path :
20
25
def __getattr__ (self , item : str ) -> Incomplete : ...
You can’t perform that action at this time.
0 commit comments