In this case the solution is to use Anonymous union literals.
const py = @cImport({
@cInclude("Python.h");
});
var pyObject = py.PyObject{
.unnamed_0 = .{ .ob_refcnt = 1 },
.ob_type = null,
};
// main fn and stuff..
If the type was a struct, an Anonymous struct literal could be used instead.