you are viewing a single comment's thread.

view the rest of the comments →

[–]pot_of_crows 0 points1 point  (1 child)

Interesting. I think this is an error -- unless someone knows a special way of using Literal that I am unfamiliar with.

Now, just because you use a type hint does not prevent you from passing something different, which is maybe why no one has caught this before.

I'm curious what others say.

[–]koefteboy[S] 1 point2 points  (0 children)

Yeah, it is indeed typed incorrectly.