File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
tableauserverclient/models Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 1- from typing import List
1+ from datetime import datetime
2+ from typing import List , Optional
23
34from defusedxml .ElementTree import fromstring
45
@@ -21,14 +22,14 @@ class Type:
2122
2223 def __init__ (
2324 self ,
24- id_ ,
25- task_type ,
26- priority ,
27- consecutive_failed_count = 0 ,
28- schedule_id = None ,
29- schedule_item = None ,
30- last_run_at = None ,
31- target = None ,
25+ id_ : str ,
26+ task_type : str ,
27+ priority : int ,
28+ consecutive_failed_count : int = 0 ,
29+ schedule_id : Optional [ str ] = None ,
30+ schedule_item : Optional [ str ] = None ,
31+ last_run_at : Optional [ datetime ] = None ,
32+ target : Optional [ Target ] = None ,
3233 ):
3334 self .id = id_
3435 self .task_type = task_type
@@ -39,7 +40,7 @@ def __init__(
3940 self .last_run_at = last_run_at
4041 self .target = target
4142
42- def __repr__ (self ):
43+ def __repr__ (self ) -> str :
4344 return (
4445 "<Task#{id} {task_type} pri({priority}) failed({consecutive_failed_count}) schedule_id({"
4546 "schedule_id}) target({target})>" .format (** self .__dict__ )
You can’t perform that action at this time.
0 commit comments