Explain briefly why you think this makes the code simpler.
This is similar to the isinstance call merging. You can also merge startswith, endswith calls on strings. This means the builtin method only needs to iterate through the string once. flake8-PIE already enables this rule as PIE810.
Example
# Bad
a = "abcdef"
if a.startswith("abc") or a.startswith("xyz"):
print("alphabet found")
# Good
a = "abcdef"
if a.startswith("abc", "xyz"):
print("alphabet found")
Explanation
Explain briefly why you think this makes the code simpler. This is similar to the isinstance call merging. You can also merge startswith, endswith calls on strings. This means the builtin method only needs to iterate through the string once. flake8-PIE already enables this rule as PIE810.
Example
can be repeated with endswith as well