Danny Yang
Danny Yang
Assigned, thanks! Let us know if you have questions or need any assistance.
In inlay hints we don't display the fully-qualified name of the type (and we probably shouldn't, for conciseness). However, when we actually persist them to the file by double clicking...
Why do we want to do constant folding in a typechecker? Is there a real world example that would benefit from this?
@connernilsen > For the good first issue tag, are there any pointers we could give for where to start looking at the changes that need to be made? Probably just...
Another example, reported from [Reddit](https://www.reddit.com/r/Python/comments/1p1axnq/comment/nppflei/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button) ```python x: float = 0.0 y: int = 0 max(0, 0.0) max(y, 0.0) ``` [sandbox](https://pyrefly.org/sandbox/?project=N4IgZglgNgpgziAXKOBDAdgEwEYHsAeAdAA4CeSI%2BiABGFLqgC7UC81ADIewDrqk0R0zNj3QBbVPgAU7ADQcuASl4TppeZ3aKQskGQBOMOqUKNcYqBQDE1AAqlDx6mix581AMa50kAOYBXfSYIb0JeGwBlGBhqAAtGRmI4RAB6FIMjKBNcfV8UmHQUzFwPOBSvHwgAoMYQwtoc6lQAN1RoVGxYT28-QODvalxiWu84MPQyRljvAFpmmH04OtZqbhAAZkIARgAmNd4QAF9dVA9a%2BYAxaBgKFxwCEnJDoA)
Thanks for reporting this issue, I'll take a look next week
I can confirm that Pyre doesn't support functional syntax for any enums besides `enum.Enum`. I could add support for `StrEnum` and `IntEnum` fairly quickly, but the current setup would need...
Another example from internal Q&A group: https://pyrefly.org/sandbox/?project=N4IgZglgNgpgziAXKOBDAdgEwEYHsAeAdAA4CeS4ATrgLYAEALqcROgOZ0Q3G6UN0BBdOlwNUDGJgA0dACrMYANVSUAOunUBjKKjhxBiOsV1x1WnXroBhAAwAKISLETMAbQEzVIW14C6ASkMAYjoROhhKajV0OlijEzMNdFk6AF45BWVKOy9ZL39ExIAhXRg0wWFRcUlXWU8QErgYPzoQsIio8xNrO0aYdwDEdTj4vUTMGDA6MDtNQyt-OgBaAD5OdAYhmLjKGAYAV0oYzVa6OwBGfxApEH2GaDgSckQQEIBVe6gIJmn99E17rh0KYkhMpmBeDRxAB9dD7GjYCJ2fCGVgMRarOhwBiULYjXYHI7TLwAOXhiNxdGA%2BAAvl51NcQGRdmAoKRCAxaFAKCEAAqkFlsrEYHAEOiaIGQNiHcQQIGEdQhADKMDKAAsGAxiHBEAB6XXMyZswi8Ni6mDoXWYXCaOC6iXoKUywGW6a8OioABuqGgqGwsHFkog0sosqBdFwxBdj3UZAYaqBS09ETgcpi6S8AGZCOcAEz09AgGk3VAAiDJgBi0BgFDQWDwRDIRaAA
cc @stroxler
I think this is a duplicate of #242, or at least the solution is the same. Either you can declare the dictionary as a typed dict: ``` class MyTypedDict(TypedDict): key:...