To replicate:
from pcbnew import *
pcb = GetBoard() # here is correct object class BOARD
pcb_empty = BOARD() # here is a null object class BOARD
In KiCad 7 all is ok,
In Kicad 8 and above (8.99 too) this not work.
Can someone help me to make it properly? or it’s a bug?
Best regards, Lukasz