-
Notifications
You must be signed in to change notification settings - Fork 1.3k
__class_getitem__ #5888
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
__class_getitem__ #5888
Conversation
WalkthroughThis set of changes introduces the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant VM
participant TypeClass
participant PyGenericAlias
User->>TypeClass: TypeClass[args] (subscripting)
TypeClass->>TypeClass: __class_getitem__(cls, args, vm)
TypeClass->>PyGenericAlias: from_args(cls, args, vm)
PyGenericAlias-->>TypeClass: PyGenericAlias instance
TypeClass-->>User: PyGenericAlias instance
Possibly related PRs
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Clippy (1.86.0)
error: failed to load source for dependency Caused by: Caused by: Caused by: 📜 Recent review detailsConfiguration used: .coderabbit.yml ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (14)
🚧 Files skipped from review as they are similar to previous changes (14)
⏰ Context from checks skipped due to timeout of 90000ms (11)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
e91d53f
to
625496c
Compare
625496c
to
d61ef66
Compare
Summary by CodeRabbit
Class[T]
) to a variety of built-in types, including arrays, context variables, bytes, bytearrays, classmethod, coroutine, generator, memoryview, range, slice, staticmethod, union, exception groups, and functools partial objects.