-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-133403: Check Tools/build/deepfreeze.py
with mypy
#133802
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
Conversation
@@ -402,7 +417,7 @@ def generate(self, name: str, obj: object) -> str: | |||
# print(f"Cache hit {key!r:.40}: {self.cache[key]!r:.40}") | |||
return self.cache[key] | |||
self.misses += 1 | |||
if isinstance(obj, (types.CodeType, umarshal.Code)) : | |||
if isinstance(obj, types.CodeType) : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here umarshal.Code
won't work, because generate_code
requires a lot more attrs than umarshal.Code
has
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
Sorry, @sobolevn, I could not cleanly backport this to
|
GH-134038 is a backport of this pull request to the 3.14 branch. |
…ythonGH-133802) (cherry picked from commit 7eaa097) Co-authored-by: sobolevn <mail@sobolevn.me>
GH-134040 is a backport of this pull request to the 3.13 branch. |
Uh oh!
There was an error while loading. Please reload this page.