diff --git a/CHANGES/909.bugfix b/CHANGES/909.bugfix new file mode 100644 index 00000000..46039698 --- /dev/null +++ b/CHANGES/909.bugfix @@ -0,0 +1 @@ +Fix `DockerImages.build()`, `DockerImages.pull()`, `DockerImages.push()` methods' incorrect return type declarations. diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index c0bd80fa..16e7fcd5 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -11,6 +11,7 @@ Edgar Ramírez Mondragón eevelweezel Gaopeiliang Greg Guthe +Gyubong Lee Hiroki Kiyohara Igor Alexandrov Jason Kraus diff --git a/aiodocker/images.py b/aiodocker/images.py index ab19796c..5cbefb3e 100644 --- a/aiodocker/images.py +++ b/aiodocker/images.py @@ -70,7 +70,7 @@ async def pull( platform: Optional[str] = None, stream: Literal[False] = False, timeout: Union[float, Sentinel, None] = SENTINEL, - ) -> Dict[str, Any]: ... + ) -> List[Dict[str, Any]]: ... @overload def pull( @@ -158,7 +158,7 @@ async def push( tag: Optional[str] = None, stream: Literal[False] = False, timeout: Union[float, Sentinel, None] = SENTINEL, - ) -> Dict[str, Any]: ... + ) -> List[Dict[str, Any]]: ... @overload def push( @@ -273,7 +273,7 @@ async def build( platform: Optional[str] = None, stream: Literal[False] = False, encoding: Optional[str] = None, - ) -> Dict[str, Any]: + ) -> List[Dict[str, Any]]: pass @overload