$ refurb file.py
[FURB183]: Replace `f"{timestamp_fmt}"` with `str(timestamp_fmt)`
But it should not be emitting an error instance because...
Refurb rule FURB183 gets a false positive when there are nested curly braces in an fstring
Version Info
1.25.0
Python Version
3.11.2
Config File
[tool.refurb]
ignore = [
"FURB124", # Ignore rule to recommend chaining comparisons over anding pairs
"FURB140", # Ignore rule to prefer starmap when iterating and constructing
"FURB152", # Ignore rule to replace number literals that look like math constants
]
python_version = "3.9"
Has your issue already been fixed?
master
branch? See the docs for instructions on how to setup a local build of Refurb.The Bug
The following code:
Emits the following error:
But it should not be emitting an error instance because...
Refurb rule FURB183 gets a false positive when there are nested curly braces in an fstring
Version Info
Python Version
3.11.2
Config File
Extra Info
None