JuliaPy / JuliaPy/PyCall.jl

@pydef not overloading method correctly

Open
#470 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

The following code does not work.

```julia
@pydef type SDTExpression <: fenics.Expression
eval(self, value, x) = begin
value[1] = 1.0
return
end
end
```

The error it gives is as follows.
```
TypeError("expected an overload 'eval' or 'eval_cell' method",)
```

This makes no sense because I've defined one.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.