From 973bf741c72d823b75411b0302351577acec3371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 25 Mar 2022 12:01:39 +0100 Subject: [PATCH] Cleanup: add a comment to explain `EndianIO::accepted_types` No functional changes. --- blender_asset_tracer/blendfile/dna_io.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/blender_asset_tracer/blendfile/dna_io.py b/blender_asset_tracer/blendfile/dna_io.py index 5596449..3c761e6 100644 --- a/blender_asset_tracer/blendfile/dna_io.py +++ b/blender_asset_tracer/blendfile/dna_io.py @@ -197,6 +197,12 @@ class EndianIO: @classmethod def accepted_types(cls): + """Return a mapping from type name to writer function. + + This is mostly to make it easier to get the correct number write + function, given that Python's `int` and `float` can map to a whole range + of C types. + """ return { b"char": cls.write_char, b"ushort": cls.write_ushort,