Open havogt opened 1 month ago
The current failures on CI are because FieldOperatorFromPast
inherits __post_init__
from FieldOperator
, but has .definition
set to None. Either _frozen_update_wrapper()
should be called inside .from_function
, guaranteeing it is only called when there is actually a function or FieldOperatorFromPast
will have to override .__post_init__
to do everything the superclass does except the _frozen_update_wrapper()
call.
Just an idea to eventually get autodoc work for GT4Py programs.
Maybe the cleaner way would be to add in indirection in the decorators and wrap them.
We still seem to have this issue https://github.com/sphinx-doc/sphinx/issues/10221, which could be worked-around with something like https://docs.celeryq.dev/en/latest/_modules/celery/contrib/sphinx.html.