HTTPX: An open stream object is being garbage collected; call “stream.close()” explicitly.

When using HTTPX I get the following error printed sometimes:

An open stream object is being garbage collected; call "stream.close()" explicitly.

According to these two github issues:

This is a Python 3.8.0 issue.

I upgraded to Python 3.8.2.

It fixes the issue!