Traceback (most recent call last):
File "/tmp/t.py", line 9, in <module>
asyncio.run(test())
File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/tmp/t.py", line 7, in test
con.send(None)
File "/home/llist/.local/lib/python3.9/site-packages/aiopg/utils.py", line 61, in send
return self._coro.send(value)
AttributeError: 'Connection' object has no attribute 'send'
Describe the bug
When using _ContextManager.send AttributeError is raised.
To Reproduce
Expected behavior
It shouldn't crash
Logs/tracebacks
Python Version
aiopg Version
OS
Linux home 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux
Additional context
No response
Code of Conduct