GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||
GeezerVison is showing github.com — Backport CPython PR 26067 by AlexWaygood · Pull Request #132 · python/typing_extensions Conversation
|
|
Not sure why that test is failing only on 3.9; it's a bit weird. I'll try to take another look tomorrow, but any suggestions are welcome :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I figured it out -- |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry for being a pain, but could we split out the flake8 changes for a cleaner history? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
My understanding of typing internals is limited, but this LGTM, apart from the comment about flake8 and a question below.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return NotImplemented | ||
| if not getattr(cls, '_is_runtime_protocol', False): | ||
| if _caller(depth=3) in {'abc', 'functools'}: | ||
| if _allow_reckless_class_checks(): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is it correct that the depth is changed from 3 to 4?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Yes, because by adding a new function that the code has to pass through before it gets to the sys._getframe call, the call stack becomes "another frame deep"
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I could just have looked at _caller and figured that out myself. 🤦
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| " @runtime protocols") | ||
| if not _is_callable_members_only(cls): | ||
| if _caller(depth=3) in {'abc', 'functools'}: | ||
| if _allow_reckless_class_checks(): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here as well?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Same as above
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.