|
1 | 1 | import abc
|
2 |
| -from typing import Final, List, NamedTuple, Optional, Tuple, Union, Any, Dict |
| 2 | +from typing import Any, Dict, Final, List, NamedTuple, Optional, Tuple, Union |
3 | 3 |
|
4 | 4 | from PIL.Image import Image
|
5 | 5 |
|
@@ -36,12 +36,7 @@ class Properties(NamedTuple):
|
36 | 36 |
|
37 | 37 | @abc.abstractmethod
|
38 | 38 | async def get_image(
|
39 |
| - self, |
40 |
| - mime_type: str = "", |
41 |
| - *, |
42 |
| - extra: Optional[Dict[str, Any]] = None, |
43 |
| - timeout: Optional[float] = None, |
44 |
| - **kwargs |
| 39 | + self, mime_type: str = "", *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None, **kwargs |
45 | 40 | ) -> Union[Image, RawImage]:
|
46 | 41 | """Get the next image from the camera as an Image or RawImage.
|
47 | 42 | Be sure to close the image when finished.
|
@@ -73,12 +68,9 @@ async def get_images(self, *, timeout: Optional[float] = None, **kwargs) -> Tupl
|
73 | 68 | ...
|
74 | 69 |
|
75 | 70 | @abc.abstractmethod
|
76 |
| - async def get_point_cloud(self, |
77 |
| - *, |
78 |
| - extra: Optional[Dict[str, Any]] = None, |
79 |
| - timeout: Optional[float] = None, |
80 |
| - **kwargs |
81 |
| - ) -> Tuple[bytes, str]: |
| 71 | + async def get_point_cloud( |
| 72 | + self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None, **kwargs |
| 73 | + ) -> Tuple[bytes, str]: |
82 | 74 | """
|
83 | 75 | Get the next point cloud from the camera. This will be
|
84 | 76 | returned as bytes with a mimetype describing
|
|
0 commit comments