Skip to content

Commit

Permalink
fix: Incorrect return type annotations of DockerImages methods (#909)
Browse files Browse the repository at this point in the history
* fix: Wrong type declarations

* chore: Add news fragment

---------

Co-authored-by: J. Nick Koston <[email protected]>
Co-authored-by: Andrew Svetlov <[email protected]>
  • Loading branch information
3 people authored Nov 20, 2024
1 parent 702003d commit 286cfdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/909.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix `DockerImages.build()`, `DockerImages.pull()`, `DockerImages.push()` methods' incorrect return type declarations.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Edgar Ramírez Mondragón
eevelweezel
Gaopeiliang
Greg Guthe
Gyubong Lee
Hiroki Kiyohara
Igor Alexandrov
Jason Kraus
Expand Down
6 changes: 3 additions & 3 deletions aiodocker/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 286cfdc

Please sign in to comment.