pydantic typing urllib progressbar