任务单 #44763

generate_packets.py: Pylance "(possibly) unbound" warnings

开放日期: 2022-06-07 02:41 最后更新: 2022-06-08 20:21

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
1

Details

Part of #43927. Pylance gives a number of warnings for variables that might be unbound. They can't really be unbound, as far as I can tell, but clean them up anyway.

  • array_size_u in Field.get_put_real(): Probably best to define fallback error values in the branches where it isn't currently defined
  • delta_header2 in Variant.get_send(): Move the use up to the spot where it's actually needed
  • v in the code to generate the else-branches in get_packet_handlers_fill_capability(): Use the Packet instead of the Variant

任务单历史 (3/4 Histories)

2022-06-07 02:41 Updated by: alienvalkyrie
  • New Ticket "generate_packets.py: Pylance "(possibly) unbound" warnings" created
2022-06-07 04:57 Updated by: alienvalkyrie
  • 处理结果 Update from to Accepted
2022-06-08 20:21 Updated by: alienvalkyrie
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登录名