azure-functions-python-library icon indicating copy to clipboard operation
azure-functions-python-library copied to clipboard

fix: add support for PEP 585 type hinting for 3.9+

Open YunchuWang opened this issue 1 year ago • 1 comments

This PR introduces compatibility with PEP 585 type hinting in the Azure Functions Python Worker. PEP 585, introduced in Python 3.9, allows for the use of built-in collection types (like list and dict) as generic type hints, offering a more concise and readable syntax.

addressing https://github.com/Azure/azure-functions-python-worker/issues/1034

YunchuWang avatar Dec 20 '23 22:12 YunchuWang

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (0ca53b3) 92.97% compared to head (94739ae) 92.98%.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #199      +/-   ##
==========================================
+ Coverage   92.97%   92.98%   +0.01%     
==========================================
  Files          56       56              
  Lines        3187     3194       +7     
  Branches      649      651       +2     
==========================================
+ Hits         2963     2970       +7     
  Misses        137      137              
  Partials       87       87              
Flag Coverage Δ
unittests 92.89% <77.77%> (-0.05%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Dec 21 '23 05:12 codecov[bot]