チケット #44763

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

登録: 2022-06-07 02:41 最終更新: 2022-06-08 20:21

報告者:
担当者:
チケットの種類:
状況:
完了
コンポーネント:
マイルストーン:
優先度:
5 - 中
重要度:
5 - 中
解決法:
修正済み
ファイル:
1

詳細

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

チケットの履歴 (4 件中 3 件表示)

2022-06-07 02:41 更新者: alienvalkyrie
  • 新しいチケット "generate_packets.py: Pylance "(possibly) unbound" warnings" が作成されました
2022-06-07 04:57 更新者: alienvalkyrie
  • 解決法なし から 受領 に更新されました
2022-06-08 20:21 更新者: alienvalkyrie
  • 状況オープン から 完了 に更新されました
  • 解決法受領 から 修正済み に更新されました

添付ファイルリスト

編集

ログインしていません。ログインしていない状態では、コメントに記載者の記録が残りません。 » ログインする