Incidencia #44763

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

Abrir Fecha: 2022-06-07 02:41 Última actualización: 2022-06-08 20:21

Informador:
Propietario:
Tipo:
Estado:
Cerrado
Componente:
Hito:
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
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 History (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
  • Resolución Update from Ninguno to Accepted
2022-06-08 20:21 Updated by: alienvalkyrie
  • Estado Update from Open to Cerrado
  • Resolución Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Entrar