mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +00:00
![]() ## 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 |
||
---|---|---|
.. | ||
annotation.md | ||
builtins.md | ||
callable_instance.md | ||
constructor.md | ||
dunder.md | ||
function.md | ||
getattr_static.md | ||
invalid_syntax.md | ||
methods.md | ||
never.md | ||
str_startswith.md | ||
subclass_of.md | ||
union.md |