ruff
47956db5 - [red-knot] Specialize `str.startswith` for string literals (#17351)

Commit
1 year ago
[red-knot] Specialize `str.startswith` for string literals (#17351) ## Summary Infer precise Boolean literal types for `str.startswith` calls where the instance and the prefix are both string literals. This allows us to understand `sys.platform.startswith(…)` branches. ## Test Plan New Markdown tests
Author
Parents
Loading