File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ def __str__(self) -> str:
6262 Return version as a string.
6363 """
6464
65- return "v" + "." .join (str (x ) for x in self )
65+ return "v" + "." .join (str (x ) for x in self ) # pylint: disable=not-an-iterable
6666
6767 def __float__ (self ) -> float :
6868 """
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def test_iter_string(string, expects):
2525
2626
2727@pytest .mark .parametrize (
28- "float , expects" ,
28+ "float_ , expects" ,
2929 [
3030 (1 , (1 , )),
3131 (1.0 , (1 , 0 )),
@@ -39,8 +39,8 @@ def test_iter_string(string, expects):
3939 ("15" , (15 , )),
4040 ]
4141 )
42- def test_iter_float (float , expects ):
43- assert tuple (_iter_float (float )) == expects
42+ def test_iter_float (float_ , expects ):
43+ assert tuple (_iter_float (float_ )) == expects
4444
4545
4646@pytest .mark .parametrize (
@@ -486,7 +486,7 @@ def test_int(version, expects):
486486 ]
487487 )
488488def test_pickle (obj ):
489- assert pickle .loads (pickle .dumps (obj )) == obj
489+ assert pickle .loads (pickle .dumps (obj )) == obj # nosec: B301
490490
491491
492492@pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments