指定类型

1     # control_id: int  control_类型为int ,
2     # -> List[Dict] 返回结果转换为List[Dict]
3     def get(self, control_id: int) -> List[Dict]:
4         pass

方法的参数传入类型,和返回的结果类型

原文地址:https://www.cnblogs.com/cfpl/p/12069860.html