Skip to content

Commit

Permalink
Add explicit type hint for APIObjectSyncMixin.list()
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson committed Jan 22, 2025
1 parent c06f10e commit 177ce8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kr8s/_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pathlib
import re
import time
from collections.abc import AsyncGenerator
from collections.abc import AsyncGenerator, Generator
from typing import (
Any,
BinaryIO,
Expand Down Expand Up @@ -833,7 +833,7 @@ def adopt(self, child):
return run_sync(self.async_adopt)(child) # type: ignore

@classmethod
def list(cls, **kwargs):
def list(cls, **kwargs) -> Generator[Self]: # type: ignore
yield from run_sync(cls.async_list)(**kwargs)


Expand Down

0 comments on commit 177ce8c

Please sign in to comment.