python / mypy

Optional static typing for Python
https://www.mypy-lang.org/
Other
18.5k stars 2.83k forks source link

Tweak the mypy badge to include the word "type" #12796

Open johnthagen opened 2 years ago

johnthagen commented 2 years ago

Documentation

Comparing the current mypy logo:

Type checked with mypy

With several others in the community:

Code style: black Imports: isort

I think that the mypy badge could be improved by reversing the order and adding the word "type" into the badge to make it more clear that type checking is what is involved.

Type checked with mypy

Also, #9919 should also be fixed so that the hosted badge can be properly displayed in areas that secure links are required.

johnthagen commented 1 year ago

Also, https://github.com/python/mypy/issues/9919 should also be fixed so that the hosted badge can be properly displayed in areas that secure links are required

This issue has been fixed:

So the hosting part of this issue is resolved.

ppfeister commented 2 months ago

For anyone else who may want to use a badge like this... I've added a static badge from Shields to another project's readme with the following...

Might tweak the blue myself later, but for those that want to on their own, it's just a quick change of the hex code at the end.

Static Badge

![Static Badge](https://img.shields.io/badge/type%20checked-mypy-039dfc)
<img alt="Static Badge" src="https://img.shields.io/badge/type%20checked-mypy-039dfc">

Static Badge

![Static Badge](https://img.shields.io/badge/statically%20typed-mypy-039dfc)
<img alt="Static Badge" src="https://img.shields.io/badge/statically%20typed-mypy-039dfc">