[Freeciv-tickets] [freeciv] #44763: generate_packets.py: Pylance "(possibly) unbound" warnings

Back to archive index
OSDN Ticket System norep****@osdn*****
Tue Jun 7 04:57:23 JST 2022


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

  Open Date: 2022-06-06 19:41
Last Update: 2022-06-06 21:57

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/44763
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44763

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-06-06 21:57 Updated by: alienvalkyrie
 * Resolution Update from None to Accepted


---------------------------------------------------------------------
Ticket Status:

      Reporter: alienvalkyrie
         Owner: alienvalkyrie
          Type: Bugs
        Status: Open [Owner assigned]
      Priority: 5 - Medium
     MileStone: 3.2.0
     Component: Bootstrap
      Severity: 5 - Medium
    Resolution: Accepted
---------------------------------------------------------------------

Ticket 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 information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/44763
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44763



More information about the Freeciv-tickets mailing list
Back to archive index