[issue42610] Get the type of from a var

2020-12-09 Thread dimitri.wei
Change by dimitri.wei : -- components: -Demos and Tools ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42610] Get the type of from a var

2020-12-09 Thread dimitri.wei
New submission from dimitri.wei : **Feature** A similar feature in typescript ```ts const foo: number = 1 type Foo = typeof foo // type Foo = number function bar(x: string): void { } type Bar = typeof bar // type Bar = (x: string) => void ``` **Pitch** The expected way in future python.