#ty #mypy - but mypy already compiles itself to c via #mypyc so being faster isn't what I'd be expecting, it will be different and probably find different typing errors since for all the type checkers, it comes down to a matter of opinion. Do you think that will be a runtime error? That's in the future, who knows man.
#Mypy
Okay, I'm ready to sell ad space in the type annotations of my open source code. #mypy
```python
from typing import TypeAlias
SquareSpaceChooseYourCanvas: TypeAlias = str
SquareSpaceSuccessStory: TypeAlias = str
def build_website(self, template: SquareSpaceChooseYourCanvas) -> SquareSpaceSuccessStory:
"""
Your Ad Here, call 1-800-doc-string
"""
print(f"Building a website with the template '{template}'.")
return "Wee!"
```
**Mypy**: `variable has type "Callable[[AsyncSearch, str, list[str] | None, str, KwArg(Any)], Coroutine[Any, Any, tuple[list[dict[str, Any]], dict[str, Any]]]]"`
**Matt**: Did you just tell me to go f*k myself?
**#Mypy**: I believe I did, Matt.
Oh, nice. Better syntax for typing generics in #python
https://peps.python.org/pep-0695/
I'll be able to use this in libraries that need to support old versions of python in about.... 1 trillion years.
old mypy: oh, man what is that. Please write `cast(str, thing)`
new #mypy, same code: oh please. I'm insulted. Of course that is a string. Remove the redundant cast. This... this... really hurts my feelings.