Commit 8fa523e
authored
use
type checkers enforce that the first argument to a sentinel is a string literal matching its name, which is enforced by the PEP: see https://peps.python.org/pep-0661/#typing
currently the type checkers contain logic to enforce that the argument is a string literal, but some of this special-casing can be removed if we use `LiteralString` in the stubsLiteralString for sentinel name1 parent 41308b8 commit 8fa523e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2196 | 2196 | | |
2197 | 2197 | | |
2198 | 2198 | | |
2199 | | - | |
| 2199 | + | |
2200 | 2200 | | |
2201 | 2201 | | |
2202 | 2202 | | |
| |||
0 commit comments