Fixes https://gitlab.com/kicad/code/kicad-python/-/issues/79 (cherry picked from commit 0aeb33f94f)
0aeb33f94f