harbor run -t openthoughts/tasktrove-swe-rebench-patched-oracle-swe_rebench-02093
harbor download openthoughts/tasktrove-swe-rebench-patched-oracle-swe_rebench-02093
cd /testbed git clone https://github.com/django/asgiref.git . && git checkout 12f6355d50c271aab821a37dbf2cde5863cc2643 pip install -r /setup_files/requirements.txt pip install -e .[tests] pip install pytest
sync.async_to_sync incorrectly warns "a non-async-marked callable" for async callable class instance Repro
sync.async_to_sync
from asgiref.sync import async_to_sync class CallableClass: async def __call__(self): return None async_to_sync(CallableClass())
Yields the UserWarning
UserWarning
UserWarning: async_to_sync was passed a non-async-marked callable
Though the code works at runtime.