Update Python: non-major updates #537
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==7.10.6->==7.10.7==0.116.1->==0.118.0==1.3.3->==1.3.4==0.3.76->==0.3.78==0.3.32->==0.3.35==0.3.29->==0.3.31==0.4.18->==0.4.33==1.102.0->==1.109.1==6.0.0->==6.1.1==3.15.0->==3.15.1==0.12.10->==0.14.0==0.35.0->==0.37.0Release Notes
nedbat/coveragepy (coverage)
v7.10.7Compare Source
Performance: with branch coverage in large files, generating HTML, JSON, or
LCOV reports could take far too long due to some quadratic behavior when
creating the function and class index pages. This is now fixed, closing
issue 2048_. Thanks to Daniel Diniz for help diagnosing the problem.Most warnings and a few errors now have links to a page in the docs
explaining the specific message. Closes
issue 1921_... _issue 1921: #1921
.. _issue 2048: #2048
.. _changes_7-10-6:
fastapi/fastapi (fastapi)
v0.118.0Compare Source
0.118.0
Fixes
StreamingResponses with dependencies withyieldorUploadFiles, close after the response is done. PR #14099 by @tiangolo.Before FastAPI 0.118.0, if you used a dependency with
yield, it would run the exit code after the path operation function returned but right before sending the response.This change also meant that if you returned a
StreamingResponse, the exit code of the dependency withyieldwould have been already run.For example, if you had a database session in a dependency with
yield, theStreamingResponsewould not be able to use that session while streaming data because the session would have already been closed in the exit code afteryield.This behavior was reverted in 0.118.0, to make the exit code after
yieldbe executed after the response is sent.You can read more about it in the docs for Advanced Dependencies - Dependencies with
yield,HTTPException,exceptand Background Tasks. Including what you could do if you wanted to close a database session earlier, before returning the response to the client.Docs
tutorial/security/oauth2-jwt/to usepwdlibwith Argon2 instead ofpasslib. PR #13917 by @Neizvestnyj.Translations
Internal
v0.117.1Compare Source
Fixes
Fileis declared afterFormparameter. PR #11194 by @thomasleveil.v0.117.0Compare Source
Features
Noneas return type for bodiless responses. PR #9425 by @hofrob.typefield. PR #13639 by @sammasak.external_docsparameter toFastAPI. PR #13713 by @cmtoro.Fixes
default_factoryfor response model field with Pydantic V1. PR #9704 by @vvanglro.jsonable_encoderaltersjson_encodersof Pydantic v1 objects. PR #4972 by @aboubacs.allow_arbitrary_typeswhen only 1 argument is used on the API endpoint. PR #13694 by @rmawatson.inspect.getcoroutinefunction()can break testing withunittest.mock.patch(). PR #14022 by @secrett2633.Refactors
dependency-cachedict insolve_dependenciesonly ifNone(don't re-create if empty). PR #13689 by @bokshitsky.test_tutorial/test_header_params/test_tutorial003.py. PR #13864 by @Amogha-ark.httpxto>=0.23.0,<1.0.0. PR #14086 by @YuriiMotov.Docs
tutorial/cookie-params.md. PR #13510 by @Kludex.path-params-numeric-validations.mdfor languagesen,esanduk.. PR #14059 by @svlandeg.Translations
Internal
docs.py generate-readmecommand to remove permalinks from headers. PR #14055 by @YuriiMotov.v0.116.2Compare Source
Upgrades
Docs
--forwarded-allow-ips="*". PR #14028 by @tiangolo.dict()indocs/tutorial/body.md. PR #13906 by @jomkv.termynal.js. PR #13714 by @Ashish-Pandey62.urlfield in error responses in docs. PR #13655 by @Taoup.scopeclaim in line with the standard indocs_src/security/tutorial005.py. PR #11189 by @DurandA.docs/en/docs/advanced/generate-clients.md. PR #13793 by @mrlubos.Translations
docs/zh/docs/python-types.md. PR #13997 by @anfreshman.docs/pt/docs/async.md. PR #13863 by @EdmilsonRodrigues.docs/ja/docs/tutorial/body.md. PR #13927 by @KoyoMiyazaki.docs/fa/docs/environment-variables.md. PR #13923 by @Mohammad222PR.docs/fa/docs/python-types.md. PR #13524 by @Mohammad222PR.docs/pt/docs/project-generation.md. PR #13875 by @EdmilsonRodrigues.docs/fa/docs/async.md. PR #13541 by @Mohammad222PR.docs/bn/about/index.md. PR #13882 by @sajjadrahman56.Internal
mkdocs_hooksto handle headers with permalinks when building docs. PR #14025 by @tiangolo.mkdocs-macros-pluginfrom 1.3.7 to 1.3.9. PR #14003 by @YuriiMotov.authlib/joserfc (joserfc)
v1.3.4Compare Source
🐞 Bug Fixes
View changes on GitHub
langchain-ai/langsmith-sdk (langsmith)
v0.4.33Compare Source
What's Changed
Full Changelog: langchain-ai/langsmith-sdk@v0.4.32...v0.4.33
v0.4.32Compare Source
What's Changed
New Contributors
Full Changelog: langchain-ai/langsmith-sdk@v0.4.31...v0.4.32
v0.4.31Compare Source
What's Changed
Full Changelog: langchain-ai/langsmith-sdk@v0.4.30...v0.4.31
v0.4.30Compare Source
What's Changed
Full Changelog: langchain-ai/langsmith-sdk@v0.4.29...v0.4.30
v0.4.29Compare Source
What's Changed
Full Changelog: langchain-ai/langsmith-sdk@v0.4.28...v0.4.29
v0.4.28Compare Source
What's Changed
New Contributors
Full Changelog: langchain-ai/langsmith-sdk@v0.4.27...v0.4.28
v0.4.27Compare Source
What's Changed
Full Changelog: langchain-ai/langsmith-sdk@v0.4.26...v0.4.27
v0.4.26Compare Source
What's Changed
Full Changelog: langchain-ai/langsmith-sdk@v0.4.25...v0.4.26
v0.4.25Compare Source
What's Changed
Full Changelog: langchain-ai/langsmith-sdk@v0.4.24...v0.4.25
v0.4.24Compare Source
What's Changed
Full Changelog: langchain-ai/langsmith-sdk@v0.4.23...v0.4.24
v0.4.23Compare Source
What's Changed
Full Changelog: langchain-ai/langsmith-sdk@v0.4.22...v0.4.23
v0.4.22Compare Source
What's Changed
Full Changelog: langchain-ai/langsmith-sdk@v0.4.21...v0.4.22
v0.4.21Compare Source
What's Changed
Full Changelog: langchain-ai/langsmith-sdk@v0.4.20...v0.4.21
v0.4.20Compare Source
What's Changed
New Contributors
Full Changelog: langchain-ai/langsmith-sdk@v0.4.19...v0.4.20
v0.4.19Compare Source
What's Changed
Full Changelog: langchain-ai/langsmith-sdk@v0.4.18...v0.4.19
openai/openai-python (openai)
v1.109.1Compare Source
Full Changelog: v1.109.1...v2.0.0
⚠ BREAKING CHANGES
ResponseFunctionToolCallOutputItem.outputandResponseCustomToolCallOutput.outputnow returnstring | Array<ResponseInputText | ResponseInputImage | ResponseInputFile>instead ofstringonly. This may break existing callsites that assumeoutputis always a string.Features
v1.109.0Compare Source
Full Changelog: v1.109.0...v1.109.1
Bug Fixes
pydantic<2.8.0when using additional fields (5d95ecf)v1.108.2Compare Source
Full Changelog: v1.108.2...v1.109.0
Features
v1.108.1Compare Source
Full Changelog: v1.108.1...v1.108.2
Bug Fixes
Chores
v1.108.0Compare Source
Full Changelog: v1.108.0...v1.108.1
Features
Chores
v1.107.3Compare Source
Full Changelog: v1.107.3...v1.108.0
Features
Chores
v1.107.2Compare Source
Full Changelog: v1.107.2...v1.107.3
Chores
get_platformtest (0b1f6a2)v1.107.1Compare Source
Full Changelog: v1.107.1...v1.107.2
Chores
get_platformtest (01f03e0)v1.107.0Compare Source
Full Changelog: v1.107.0...v1.107.1
Chores
v1.106.1Compare Source
Full Changelog: v1.106.1...v1.107.0
Features
Chores
v1.106.0Compare Source
Full Changelog: v1.106.0...v1.106.1
Chores
pyproject.tomlfile (ca413a2)v1.105.0Compare Source
Full Changelog: v1.105.0...v1.106.0
Features
v1.104.2Compare Source
Full Changelog: v1.104.2...v1.105.0
Features
v1.104.1Compare Source
Full Changelog: v1.104.1...v1.104.2
Bug Fixes
v1.104.0Compare Source
Full Changelog: v1.104.0...v1.104.1
Chores
v1.103.0Compare Source
Full Changelog: v1.103.0...v1.104.0
Features
Bug Fixes
Chores
py-pdf/pypdf (pypdf)
v6.1.1Compare Source
Bug Fixes (BUG)