Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Any-> object in simple operator funcs - #6451

Merged
Akuli merged 2 commits into
python:masterfrom
AlexWaygood:patch-2
Nov 30, 2021
Merged

Any-> object in simple operator funcs#6451
Akuli merged 2 commits into
python:masterfrom
AlexWaygood:patch-2

Conversation

@AlexWaygood

Copy link
Copy Markdown
Member

No description provided.

@github-actions

This comment has been minimized.

@Akuli

Akuli commented Nov 30, 2021

Copy link
Copy Markdown
Collaborator

Can you do the same for not_ and truth? This could be done to several other functions too, but not_, truth, is_ and is_not are perhaps the simplest ones, least likely to cause any problems.

@AlexWaygood

Copy link
Copy Markdown
Member Author

Can you do the same for not_ and truth?

I was less sure about those than about these, because of the numpy weirdness around truth-testing. But I guess builtins.bool.__new__ is annotated as accepting object, and we should be consistent! I'll make the change.

@AlexWaygood AlexWaygood changed the title Any-> object in operator.is_ & operator.is_not Any-> object in simple operator funcs Nov 30, 2021
@AlexWaygood

Copy link
Copy Markdown
Member Author

Any idea why mypy_primer has suddenly started taking much longer in the last few days, btw?

@hauntsaninja

hauntsaninja commented Nov 30, 2021

Copy link
Copy Markdown
Collaborator

I finally got around to fixing project setups for the modular typeshed change, so now mypy_primer installs many more pip packages (mypy has more to do also pip isn't fast). I also added maybe 20 more projects.

@github-actions

Copy link
Copy Markdown
Contributor

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

@AlexWaygood

Copy link
Copy Markdown
Member Author

I finally got around to fixing project setups for the modular typeshed change, so now mypy_primer installs many more pip packages (and pip is really slow). I also added maybe 20 more projects.

Ahh, makes sense, thanks!

@hauntsaninja

hauntsaninja commented Nov 30, 2021

Copy link
Copy Markdown
Collaborator

Recent changes visible like so: https://github.com/hauntsaninja/mypy_primer/compare/35e004c92..master

@hauntsaninja

Copy link
Copy Markdown
Collaborator

I'm hopeful mypy 0.920, if it's ever released, will make mypy-primer much faster (e.g. python/mypy#10922). Maybe I should switch typeshed to using a pre-release wheel... We could also just shard it more.

@AlexWaygood

Copy link
Copy Markdown
Member Author

...if it's ever released

👀

@AlexWaygood

Copy link
Copy Markdown
Member Author

I'm hopeful mypy 0.920, if it's ever released, will make mypy-primer much faster

Definitely important to have a more comprehensive diff in the meantime, anyway! Thanks for all the work you do maintaining such an awesome tool 🙂

@Akuli
Akuli merged commit 1f62ff6 into python:master Nov 30, 2021
@AlexWaygood
AlexWaygood deleted the patch-2 branch November 30, 2021 13:59
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.

3 participants