Skip to content

Conversation

@dulinriley
Copy link
Contributor

Summary:
In python 3.12, there were a few changes to runtime_checkable:
https://docs.python.org/3/whatsnew/3.12.html#typing

The members of a runtime-checkable protocol are now considered “frozen” at runtime as soon as the class has been created. Monkey-patching attributes onto a runtime-checkable protocol will still work, but will have no impact on isinstance() checks comparing objects to the protocol

I'm not sure what was monkey-patched here, but EdgeDialectOverloadPacket
no longer passes the assert.
I'm not sure how to fix this for real, but I just deleted it under the assumption
it's not helpful enough to be worth breaking tests.

Differential Revision: D65316894

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 4, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6638

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit 4087d1c with merge base f96be5b (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 4, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65316894

dulinriley added a commit to dulinriley/executorch that referenced this pull request Nov 12, 2024
Summary:

In python 3.12, there were a few changes to runtime_checkable:
https://docs.python.org/3/whatsnew/3.12.html#typing
> The members of a runtime-checkable protocol are now considered “frozen” at runtime as soon as the class has been created. Monkey-patching attributes onto a runtime-checkable protocol will still work, but will have no impact on isinstance() checks comparing objects to the protocol

I'm not sure what was monkey-patched here, but EdgeDialectOverloadPacket
no longer passes the assert.
I'm not sure how to fix this for real, but I just deleted it under the assumption
it's not helpful enough to be worth breaking tests.

Differential Revision: D65316894
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65316894

dulinriley added a commit to dulinriley/executorch that referenced this pull request Nov 12, 2024
Summary:

In python 3.12, there were a few changes to runtime_checkable:
https://docs.python.org/3/whatsnew/3.12.html#typing
> The members of a runtime-checkable protocol are now considered “frozen” at runtime as soon as the class has been created. Monkey-patching attributes onto a runtime-checkable protocol will still work, but will have no impact on isinstance() checks comparing objects to the protocol

I'm not sure what was monkey-patched here, but EdgeDialectOverloadPacket
no longer passes the assert.
I'm not sure how to fix this for real, but I just deleted it under the assumption
it's not helpful enough to be worth breaking tests.

Differential Revision: D65316894
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65316894

Summary:

In python 3.12, there were a few changes to runtime_checkable:
https://docs.python.org/3/whatsnew/3.12.html#typing
> The members of a runtime-checkable protocol are now considered “frozen” at runtime as soon as the class has been created. Monkey-patching attributes onto a runtime-checkable protocol will still work, but will have no impact on isinstance() checks comparing objects to the protocol

I'm not sure what was monkey-patched here, but EdgeDialectOverloadPacket
no longer passes the assert.
I'm not sure how to fix this for real, but I just deleted it under the assumption
it's not helpful enough to be worth breaking tests.

Differential Revision: D65316894
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65316894

@facebook-github-bot facebook-github-bot merged commit ae61100 into pytorch:main Nov 16, 2024
40 of 41 checks passed
@dulinriley dulinriley deleted the export-D65316894 branch November 18, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants