basedpyright icon indicating copy to clipboard operation
basedpyright copied to clipboard

Support callable literal syntax

Open KotlinIsland opened this issue 1 year ago • 2 comments

a: "(int) -> str"
reveal_type(a) # (int) -> str

please 😊

KotlinIsland avatar Jun 24 '24 00:06 KotlinIsland

imo types that need to be in quotes look gross. would prefer something that works at runtime, and ideally something that also addresses #20

DetachHead avatar Jul 08 '24 10:07 DetachHead

looks like pyright used to support this because it was in a rejected pep. we can probably just revert 9949577cedc108274204f9bf58f6f207b63ac1d2

DetachHead avatar Sep 12 '24 00:09 DetachHead