Skip to content

Recognize ReadOnly items, defined by PEP 705 #25

@davidfstr

Description

@davidfstr

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.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions