Detect if required string literal escapes are missing from a type #948
Labels
feature
priority-1-normal
topic-quoted-annotations
Detecting problems with quoted annotations
topic-usability
Mypy should complain about code that isn't using string literal escaped when they are required:
Initially we could only detect these cases within a single module. A more general solution would also detect string literal types needed due to cyclic imports.
A simple implementation idea:
We also need deal with type aliases, but this isn't needed for the first iteration.
I think that somebody started working on this a while back, but I can't remember the details. Maybe there is an existing issue as well?
The text was updated successfully, but these errors were encountered: