Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What was the expected outcome for you? AFAIK, Python doesn't have a const dictionary. Were you wanting it to refactor into a dataclass?


Yes, there's a few things wrong: 1. If it assumes typescript, it should do `as const` in the first msg 2. If it is python, it should be something like https://x.com/WesleyYue/status/1816157147413278811 which is what I wanted but I didn't want to bother with the typing.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: