Pylint 3.3.0 does not recognize f-string as string and reports no-member for startswith() #9947
Labels
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs astroid update
Needs an astroid update (probably a release too) before being mergable
Regression
Milestone
Bug description
The following file test_pylint.py:
causes pylint to report this issue:
I tested this with multiple pylint versions, and the first version that has this behavior is pylint 3.3.0.
Command used
Pylint output
Expected behavior
Pylint should not report this as an error, because an f-string is a string and has the startswith() method.
Pylint version
OS / Environment
macOS Sonoma 14.6.1
The text was updated successfully, but these errors were encountered: