pitrou commented on PR #45471:
URL: https://github.com/apache/arrow/pull/45471#issuecomment-2683130901
@Linchin @omatthew98 I think the way around this would be to take a
`**kwargs` in your `as_py` method and then forward it to any nested `as_py`
call (if any).
For example turn this:
```python
class JSONArrowScalar(pa.ExtensionScalar):
def as_py(self):
return JSONArray._deserialize_json(self.value.as_py() if self.value
else None)
```
into this:
```python
class JSONArrowScalar(pa.ExtensionScalar):
def as_py(self, **kwargs):
return JSONArray._deserialize_json(self.value.as_py(**kwargs) if
self.value else None)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]