Skip to content

Commit

Permalink
Add Iterator typing for external_contact
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jan 15, 2021
1 parent b19bce0 commit a04b4f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wechatpy/work/client/api/external_contact.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from typing import Optional, List
from typing import Optional, List, Iterator

from optionaldict import optionaldict

Expand Down Expand Up @@ -135,7 +135,7 @@ def batch_get_by_user(self, userid: str, cursor: str = "", limit: int = 50) -> d
)
return self._post("externalcontact/batch/get_by_user", data=data)

def gen_all_by_user(self, userid: str, limit: int = 50):
def gen_all_by_user(self, userid: str, limit: int = 50) -> Iterator[dict]:
"""
获取企业员工添加的所有客户详情列表的生成器
Expand Down

0 comments on commit a04b4f3

Please sign in to comment.