ruff/crates/ruff_linter/resources/test/fixtures/refurb/FURB167.py

23 lines
322 B
Python

def func():
import re
# OK
if re.match("^hello", "hello world", re.IGNORECASE):
pass
def func():
import re
# FURB167
if re.match("^hello", "hello world", re.I):
pass
def func():
from re import match, I
# FURB167
if match("^hello", "hello world", I):
pass