Azure / azure-functions-python-library

Azure Functions Python SDK
MIT License
147 stars 61 forks source link

Add Support for PEP 585 Type Hinting in Azure Functions Python Worker #199

Open YunchuWang opened 7 months ago

YunchuWang commented 7 months ago

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

codecov[bot] commented 7 months ago

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 ```diff @@ 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](https://app.codecov.io/gh/Azure/azure-functions-python-library/pull/199/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/Azure/azure-functions-python-library/pull/199/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure) | `92.89% <77.77%> (-0.05%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure#carryforward-flags-in-the-pull-request-comment) to find out more.

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