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

Fix Generators typeshed test #10255

Merged
merged 1 commit into from
Apr 11, 2021
Merged

Conversation

hatal175
Copy link
Contributor

Description

typshed mistakenly set itertools.count as a function while it is actually a class. Meaning that it returns a class instance and then this clashes with the filter assignment in the test.
I want to fix the typeshed side but the mypy test on THEIR repo fails because of this.

Test Plan

Mypy behaves the same but tests should be more in line with itertools actual typing.

typshed mistakenly set itertools.count as a function while it is actually a class. Meaning that it returns a class instance and then this clashes with the filter result.
@hauntsaninja
Copy link
Collaborator

Thanks for this! Yeah, in general the mypy-typeshed dependency can cause some friction. In this case, I'm not sure that we should actually make this change in typeshed... Opened python/typeshed#5145 to discuss :-)

@JelleZijlstra
Copy link
Member

Even if we don't make the change in typeshed, it seems harmless to make this change so that we make CI for the two projects a bit less interdependent, so I'm going to merge it.

@JelleZijlstra JelleZijlstra merged commit b31122f into python:master Apr 11, 2021
@TH3CHARLie
Copy link
Collaborator

This has caused test-data/samples/generators.py:9: error: Variable annotation syntax is only supported in Python 3.6 and greater on master

JelleZijlstra added a commit that referenced this pull request Apr 12, 2021
@JelleZijlstra
Copy link
Member

Sorry for missing that, fixed it in #10315

JelleZijlstra added a commit that referenced this pull request Apr 12, 2021
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.

None yet

4 participants