Skip to content

Commit

Permalink
Fix docstring generation for generated packet types
Browse files Browse the repository at this point in the history
  • Loading branch information
Cirras committed Feb 26, 2024
1 parent 9095709 commit 9434037
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions protocol_code_generator/generate/code_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ def _generate_packet(self, protocol_packet):
.unindent()
)

object_code_generator.data.docstring.add_code_block(
generate_docstring(get_comment(protocol_packet))
)

code_block = object_code_generator.code
code_block.add_import("Packet", "eolib.protocol.net.packet")
code_block.add_import("PacketFamily", "eolib.protocol._generated.net.packet_family")
Expand Down

0 comments on commit 9434037

Please sign in to comment.