Skip to content

Commit 70f3dae

Browse files
chore: fix F841 errors reported by flake8
Local variable name is assigned to but never used https://www.flake8rules.com/rules/F841.html
1 parent 33ed192 commit 70f3dae

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

gitlab/cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ def docs() -> argparse.ArgumentParser:
162162
if "sphinx" not in sys.modules:
163163
sys.exit("Docs parser is only intended for build_sphinx")
164164

165-
parser = _get_base_parser(add_help=False)
166165
# NOTE: We must delay import of gitlab.v4.cli until now or
167166
# otherwise it will cause circular import errors
168167
import gitlab.v4.cli

gitlab/tests/objects/test_appearance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ def test_get_update_appearance(gl, resp_application_appearance):
6363

6464

6565
def test_update_appearance(gl, resp_application_appearance):
66-
resp = gl.appearance.update(title=new_title, description=new_description)
66+
gl.appearance.update(title=new_title, description=new_description)

gitlab/tests/test_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_picklability(self, fake_manager):
9292
assert isinstance(unpickled, FakeObject)
9393
assert hasattr(unpickled, "_module")
9494
assert unpickled._module == original_obj_module
95-
pickled2 = pickle.dumps(unpickled)
95+
pickle.dumps(unpickled)
9696

9797
def test_attrs(self, fake_manager):
9898
obj = FakeObject(fake_manager, {"foo": "bar"})

gitlab/v4/objects/todos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ def mark_all_as_done(self, **kwargs):
4848
Returns:
4949
int: The number of todos maked done
5050
"""
51-
result = self.gitlab.http_post("/todos/mark_as_done", **kwargs)
51+
self.gitlab.http_post("/todos/mark_as_done", **kwargs)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy