Skip to content

Propose direct associated type access#22

Closed
msullivan wants to merge 3 commits intomainfrom
spec
Closed

Propose direct associated type access#22
msullivan wants to merge 3 commits intomainfrom
spec

Conversation

@msullivan
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread spec-draft.rst
Comment on lines +313 to +317
UPDATE: None of this works except maybe the first one, because the descriptor will get called on the *origin class* and not the instantiated ``_GenericAlias``.

We could probably kind of make it work by having a descriptor and having the descriptor *walk the stack* and get the ``self`` from the ``_BaseGenericAlias.__getattr__`` stack frame but that is a horror show...

Yury thinks we don't want to propose anything that requires much modifying of the descriptors...
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, this doesn't work!

@msullivan msullivan closed this Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant