File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ def test_init(self):
125125 self .assertIsInstance (version .local , tuple )
126126
127127 def test_init_bad (self ):
128+ # pylint: disable = redefined-variable-type
128129 for (args , kwargs ), exception in BAD_INIT_CASES .items ():
129130 with self .subTest (args = args , kwargs = kwargs , exception = exception ):
130131 with self .assertRaises (exception ):
Original file line number Diff line number Diff line change @@ -32,8 +32,7 @@ def parse_pre_release_str(pre_release: str) -> t.Sequence[
3232 t .Tuple [t .Optional [str ], t .Optional [str ], t .Optional [int ]]]:
3333 """Parse a pre-release string into a sequence of tuples."""
3434 parts = patterns .PRE_RELEASE .findall (pre_release )
35- _LOG .debug ('parsed pre-release string %s into %s' ,
36- repr (pre_release ), parts )
35+ _LOG .debug ('parsed pre-release string %s into %s' , repr (pre_release ), parts )
3736 tuples = []
3837 for part in parts :
3938 match = patterns .PRE_RELEASE_PART .fullmatch (part )
@@ -51,4 +50,4 @@ def parse_local_str(local: str) -> tuple:
5150 """Parse a local version suffix string into a sequence."""
5251 match = patterns .LOCAL .fullmatch (local )
5352 assert match is not None
54- return tuple ([ _ for _ in match .groups () if _ is not None ] )
53+ return tuple (_ for _ in match .groups () if _ is not None )
You can’t perform that action at this time.
0 commit comments