Ticket #44763

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

Eröffnet am: 2022-06-07 02:41 Letztes Update: 2022-06-08 20:21

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
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

Ticket-Verlauf (3/4 Historien)

2022-06-07 02:41 Aktualisiert von: alienvalkyrie
  • New Ticket "generate_packets.py: Pylance "(possibly) unbound" warnings" created
2022-06-07 04:57 Aktualisiert von: alienvalkyrie
  • Lösung Update from Keine to Accepted
2022-06-08 20:21 Aktualisiert von: alienvalkyrie
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Bearbeiten

Please login to add comment to this ticket » Anmelden