Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[python] typing updates we can do once we have min version 3.9 #6830

Open
iscai-msft opened this issue Apr 2, 2025 · 0 comments
Open

[python] typing updates we can do once we have min version 3.9 #6830

iscai-msft opened this issue Apr 2, 2025 · 0 comments
Assignees
Labels
emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Comments

@iscai-msft
Copy link
Member

iscai-msft commented Apr 2, 2025

  • No more importing List, Dict from typing. We can directly use list or dict
  • Union of dict is cool, though not critical newdict = dict1 | dict2, simplifies us needing to do newdict.update(dict1) and newdict.update(dict2)
  • Annotated in PEP593 is killing RestField for codegen
  • ZoneInfo maybe interesting to simplify some serialization code we have for timezone.
@iscai-msft iscai-msft added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:python Issue for the Python client emitter: @typespec/http-client-python
Projects
None yet
Development

No branches or pull requests

2 participants