top | item 46297349

(no title)

SSchick | 2 months ago

https://github.com/python/typing/pull/2137

PR is somewhat WIP-ish but I needed some motivation to do OSS work again :)

discuss

order

CyberThijs|2 months ago

For those interested: the results page in this PR looks like this:

https://htmlpreview.github.io/?https://github.com/SimonSchic...

collinmanderson|2 months ago

Thanks.

I really need better generics support before ty becomes useful. Currently decorators just make all return types unknown. I need something this to work:

    _F = TypeVar("_F", bound=Callable[..., Any])
    def my_decorator(*args: str) -> Callable[[_F], _F]: ...
Also, I use a lot of TypedDicts and there's not much support yet.