reference to overload
时间: 2023-12-08 08:05:00 浏览: 111
引用\[1\]中提到,@overload装饰器可以修饰支持多种不同参数类型组合的函数和方法。它的作用是为了协助类型检查工具,因为被@overload装饰的定义会在运行时被类型检查工具忽略,而非@overload装饰的定义会覆盖它们。\[1\]\[2\]在运行时,直接调用被@overload装饰的函数会引发NotImplementedError。\[2\]这样设计的目的是为了在编译时进行类型检查,提高代码的可靠性和可维护性。
#### 引用[.reference_title]
- *1* *2* [Python3中装饰器@typing.overload的使用](https://blog.csdn.net/fengbingchun/article/details/121959036)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Linux+CLion+树莓派远程编译时,Cmake编译出现undefined reference to `vtable for MainWindow'的解决办法](https://blog.csdn.net/weixin_39681486/article/details/116692737)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文