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

Recognize ReadOnly items, defined by PEP 705 #25

Closed
davidfstr opened this issue Mar 1, 2024 · 0 comments
Closed

Recognize ReadOnly items, defined by PEP 705 #25

davidfstr opened this issue Mar 1, 2024 · 0 comments
Assignees
Labels
feature New feature or request
Milestone

Comments

@davidfstr
Copy link
Owner

davidfstr commented Mar 1, 2024

PEP 705 was recently accepted for Python 3.13. It introduces a new typing qualifier ReadOnly[] which trycast will need to be able to recognize.

Until this support is added, I expect trycast() and isassignable() will always return False (or crash) when given a TypedDict type that includes ReadOnly items.

@davidfstr davidfstr added this to the v1.2 milestone Mar 27, 2024
@davidfstr davidfstr added the feature New feature or request label Mar 31, 2024
@davidfstr davidfstr self-assigned this Apr 3, 2024
davidfstr added a commit that referenced this issue Apr 3, 2024
davidfstr added a commit that referenced this issue Apr 3, 2024
davidfstr added a commit that referenced this issue Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant