Skip to content

Commit debf72f

Browse files
committed
Add a missed hint in _yielded_function
1 parent d8d2783 commit debf72f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

helpscout/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def __getitem__(self, resource_id:int|str) -> HelpScoutEndpointRequester:
394394
True,
395395
)
396396

397-
def _yielded_function(self, method, *args, **kwargs):
397+
def _yielded_function(self, method:str, *args, **kwargs):
398398
"""Calls a generator function and calls next.
399399
It is intended to be used with post, put, patch and delete which do not
400400
return objects, but as hit is a generator, still have to be nexted.
@@ -405,6 +405,8 @@ def _yielded_function(self, method, *args, **kwargs):
405405
Positional arguments after *method* to forward to client.hit .
406406
*kwargs: keyword arguments
407407
Keyword arguments after *method* to forward to client.hit.
408+
method: str
409+
Inherited
408410
409411
Returns
410412
-------

0 commit comments

Comments
 (0)