Quantcast
Channel: Closures and type hints (in VS Code)
Viewing all articles
Browse latest Browse all 7

Closures and type hints (in VS Code)

$
0
0

yellow2 is mostly fine in this specific use case, but unfortunately it can’t include the sep argument.
For callables as arguments, keyword arguments aren’t all that useful, but for closures they are.

I guess it works as intended in Pylance. (Type aliases aren’t expanded too).
It’s just sad I can’t type hint everything. (Without losing helpful information).

Read full topic


Viewing all articles
Browse latest Browse all 7

Trending Articles