Skip to content

Conversation

stkrizh
Copy link
Contributor

@stkrizh stkrizh commented Mar 26, 2022

Description

This PR removes * from reveal_type output for inferred types.

Closes #10076

Test Plan

Tests are updated accordingly. * is also removed from expected test outputs.

@github-actions

This comment has been minimized.

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Thanks for updating so many tests! It all looks good to me.

CI is failing because of issues with mypyc on Windows. Not sure what that's about but it's probably not related to this change.

@JukkaL could you confirm whether you're OK with removing the * for inferred types from mypy's output?

@JelleZijlstra JelleZijlstra self-assigned this Mar 26, 2022
@JukkaL
Copy link
Collaborator

JukkaL commented Mar 28, 2022

Yeah, this is good! The asterisks have been useless. I originally thought that mypyc would benefit from them, but it doesn't really need them for anything, I think.

Windows CI was fixed recently -- if you rebase, it should work.

@JelleZijlstra
Copy link
Member

Thanks @JukkaL! In the repo settings, there is an option to allow updating branches from the UI, could you enable that? It would allow fixing CI in cases like this without using the command line.

@stkrizh
Copy link
Contributor Author

stkrizh commented Mar 28, 2022

@JelleZijlstra thanks for reviewing, i'm very glad to help. Should i rebase myself?

@JelleZijlstra
Copy link
Member

@stkrizh sure!

@stkrizh stkrizh force-pushed the reveal-type-remove-asterisk branch from df9960c to c64f400 Compare March 28, 2022 18:06
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra JelleZijlstra merged commit bd53039 into python:master Mar 28, 2022
DamianZaremba added a commit to DamianZaremba/django-stubs that referenced this pull request Apr 28, 2022
There was an upstream change (python/mypy#12459)
to remove * from inferred types in the reveal_type output.

As we are asserting the * to exist, all the test cases are now failing
on the 0.950 release. Removing the expected * to mirror the upstream
behaviour change should resolve the test failures.
sobolevn pushed a commit to typeddjango/django-stubs that referenced this pull request Apr 29, 2022
* Bump mypy to 0.95x

* Remove the * for inferred types

There was an upstream change (python/mypy#12459)
to remove * from inferred types in the reveal_type output.

As we are asserting the * to exist, all the test cases are now failing
on the 0.950 release. Removing the expected * to mirror the upstream
behaviour change should resolve the test failures.
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.

Remove the * for inferred types from reveal_type output
3 participants