add type hint to ZenpyUser
This commit is contained in:
parent
20bac4eedf
commit
ac446c7746
@ -1,6 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from zenpy import Zenpy
|
from zenpy import Zenpy
|
||||||
|
from zenpy.lib.api_objects import User as ZenpyUser
|
||||||
|
|
||||||
|
|
||||||
def api_auth():
|
def api_auth():
|
||||||
@ -24,7 +25,7 @@ def api_auth():
|
|||||||
credentials['password'] = password
|
credentials['password'] = password
|
||||||
|
|
||||||
zenpy_client = Zenpy(**credentials)
|
zenpy_client = Zenpy(**credentials)
|
||||||
zenpy_user = zenpy_client.users.search(email).values[0]
|
zenpy_user: ZenpyUser = zenpy_client.users.search(email).values[0]
|
||||||
|
|
||||||
user = {
|
user = {
|
||||||
'id': zenpy_user.id,
|
'id': zenpy_user.id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user