Denis Laxalde
Denis Laxalde
> Thanks for adding these! I'm not sure the types for core.py should go > into a stub file, though. (But maybe there's some tradeoff I'm missing?) It depends if...
test files are in sdist (incl. data from ee2a260e0bc28c158f2033c05611845c1d332783) as far as I can tell
I'm trying to see if psycopg could work with anyio, see https://github.com/psycopg/psycopg/issues/29 and discussions in https://github.com/psycopg/psycopg2/issues/1057. (I am aware of the limitations.) Basically, we have a `PGconn` object wrapping a...
I'd pass a `fd: int`, which trio and asyncio functions already accept. `PGconn` has a `socket` property (mapping `PQsocket` accessor), this returns a file descriptor number.
In fact `socket.socket` is already too restrictive; probably a `HasFileno` protocol as defined in typeshed (https://github.com/python/typeshed/blob/994b69ef8f18e76689daca3947879c3d7f76173e/stdlib/_typeshed/__init__.pyi#L149) would be enough.
I don't know in general. For the libpq connection, I tried that `socket.socket(fileno=pgconn.socket)` but this fails with `OSError: [Errno 9] Bad file descriptor`.
`socket.fromfd()` works better; thank you!
Ok, makes sense!
In case you didn't know it (because it's hidden IIRC), there is a `m` key binding that shows media attachments; but it only works for images it seems.
We're not really using something fancy here, it's just a '⋅' (U+22C5 unicode character). So your terminal might not be able to display unicode characters, which is quite odd these...