Skip to content

Commit 2200b53

Browse files
committed
chore: fix further linting issues
1 parent 029aa1e commit 2200b53

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/test_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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):

version_query/parser.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)