@pydef not overloading method correctly
- Lenguaje dominante
- Julia
- Estrellas
- 1.5k
- Forks
- 186
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start by reproducing the Julia snippet using the @pydef entry point and the fenics.Expression subclass shown in the issue. Trace how @pydef discovers eval and eval_cell overloads, then verify that the defined eval method is accepted without the reported TypeError.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- julia, python
- Área
- backend-api-design
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100