Strange case with deepcopy() and Literal[True] #12001
Labels
bug
mypy got something wrong
topic-literal-types
topic-type-context
Type context / bidirectional inference
Uh oh!
There was an error while loading. Please reload this page.
The following code:
produces the following output:
If
deepcopy()
call is removed, warnings go away.In some similar cases only the second warning appears, which looks even weirder.
The text was updated successfully, but these errors were encountered: