uranusjr commented on issue #15325:
URL: https://github.com/apache/airflow/issues/15325#issuecomment-817950237


   I was thinking more about proxying the class itself, something like
   
   ```python
   class _XComMeta(type):
       def __init__(self, *args, **kwargs):
           super().__init__(*args, **kwargs)
           self._impl = resolve_xcom_backend()
   
       def __getattr__(self, name):
           return getattr(self._impl, name)
   
   
   class XCom(BaseXCom, metaclass=_XComMeta):
       def __new__(cls, *args, **kwargs):
           return cls._impl(*args, **kwargs)
   ```
   
   There are other things that need consideration such as `__issubclass__` and 
`__isinstance__`, but it should be possible with the right tweaks to the code 
base. Whether that’s too much work, however…


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to