Skip to content

Commit

Permalink
Update to master
Browse files Browse the repository at this point in the history
  • Loading branch information
gatesn committed Oct 30, 2023
1 parent 2e5967d commit 44b0487
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pydust/src/trampoline.zig
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ pub fn Trampoline(comptime T: type) type {
const ZigCallArgs = struct {
argsStruct: T,

pub fn unwrap(pyargs: ?py.PyTuple, pykwargs: ?py.PyDict) PyError!T {
pub fn unwrap(pyargs: ?py.PyTuple, pykwargs: ?py.PyDict) PyError!@This() {
var kwargs = py.Kwargs.init(py.allocator);
if (pykwargs) |kw| {
var iter = kw.itemsIterator();
Expand All @@ -300,11 +300,11 @@ pub fn Trampoline(comptime T: type) type {
}
}

return .{ .argsStruct = funcs.unwrapArgs(T, args, kwargs) };
return .{ .argsStruct = try funcs.unwrapArgs(T, args, kwargs) };
}

pub fn deinit(self: @This()) void {
funcs.deinitArgs(self.argsStruct);
funcs.deinitArgs(T, self.argsStruct);
}
};
};
Expand Down

0 comments on commit 44b0487

Please sign in to comment.