Skip to content
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

@final: backport bpo-46342 #1026

Merged
merged 7 commits into from Jan 15, 2022
Merged

@final: backport bpo-46342 #1026

merged 7 commits into from Jan 15, 2022

Conversation

@JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented Jan 15, 2022

No description provided.

@@ -2205,6 +2206,81 @@ class Alias:
def return_tuple(self) -> TupleSelf:
return (self, self)


class FinalDecoratorTests(BaseTestCase):
Copy link
Member Author

@JelleZijlstra JelleZijlstra Jan 15, 2022

Choose a reason for hiding this comment

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

These tests were copied verbatim from CPython

@JelleZijlstra
Copy link
Member Author

@JelleZijlstra JelleZijlstra commented Jan 15, 2022

Seems like the tests are installing the wrong version of typing-extensions again

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Looks good!

In general, feels safer to always use sys.version_info checks instead of hasattr if we don't always use the typing version of things. E.g., when looking at #1016 I had to lookup when is_typeddict got added to typing (since if it was added in 3.9, we'd do the wrong thing on 3.9.0 and 3.9.1)

@JelleZijlstra
Copy link
Member Author

@JelleZijlstra JelleZijlstra commented Jan 15, 2022

Now it's just 3.11 that's failing, presumably because the version on GH Actions doesn't have my patch yet. I'll mark 3.11-dev as allowed to fail for now.

@JelleZijlstra
Copy link
Member Author

@JelleZijlstra JelleZijlstra commented Jan 15, 2022

OK, CI is green now. @hauntsaninja could you take another look at the changes since your review?

@@ -27,12 +27,20 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Test typing_extensions
if: matrix.python-version != "3.11-dev"
run: |
Copy link
Collaborator

@hauntsaninja hauntsaninja Jan 15, 2022

Choose a reason for hiding this comment

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

I think the Github Actions incantation might be something like:

continue-on-error: ${{ matrix.python-version == '3.11-dev' }}

Edit: I thought this would make 3.11 failures more visible, but looks like it doesn't, so feel free to ignore

Copy link
Member Author

@JelleZijlstra JelleZijlstra Jan 15, 2022

Choose a reason for hiding this comment

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

Ah you're right, I was reading something that suggested continue-on-error wouldn't work properly

@JelleZijlstra JelleZijlstra merged commit 86fab75 into python:master Jan 15, 2022
10 checks passed
@JelleZijlstra JelleZijlstra deleted the bpo-46342 branch Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants