blob: ea283a4276e73cd0f41ead969d4450f90d9539d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
"""Test if disable-next only disables messages for the next line"""
# pylint: disable=missing-function-docstring
# pylint: disable-next=unused-argument, invalid-name
def function_A(arg1, arg2):
return arg1
# pylint: disable-next=unused-argument,invalid-name
def function_B(arg1, arg2):
return arg1
# pylint: disable-next=invalid-name, f-string-without-interpolation
def function_C():
x = "string" # [unused-variable, invalid-name]
return f"This should be a normal string" # [f-string-without-interpolation]
def function_D(arg1, arg2): # [unused-argument, invalid-name]
return arg1
def function_E(): # [invalid-name]
# pylint: disable-next=unused-variable
test = 43 # [unused-variable]
blah = 123 # [unused-variable]
|