We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
match.group().count
Bug Report
On v1.15.0, with mypy --warn-unreachable ... successfully finds no errors with
mypy --warn-unreachable ...
import re re.sub("x", lambda m: m.group().count("x") * "x", "x")
but reports an error with
import re for _ in re.findall("x", "x"): re.sub("x", lambda m: m.group().count("x") * "x", "x") # E: Argument 1 to "count" of "bytes" has incompatible type "str"; expected "Buffer | SupportsIndex" [arg-type]
for reference, both examples pass with v1.14.1 and with v1.15.0 without --warn-unreachable.
--warn-unreachable
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report
On v1.15.0, with
mypy --warn-unreachable ...
successfully finds no errors withbut reports an error with
for reference, both examples pass with v1.14.1 and with v1.15.0 without
--warn-unreachable
.The text was updated successfully, but these errors were encountered: