Skip to content

Commit 0f5080e

Browse files
committed
Allow to extend BuildCommand class with **kwargs
1 parent fd13ee5 commit 0f5080e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readthedocs/doc_builder/environments.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class BuildCommand(BuildCommandResultMixin):
8383
:param build_env: build environment to use to execute commands
8484
:param bin_path: binary path to add to PATH resolution
8585
:param description: a more grokable description of the command being run
86+
:param kwargs: allow to subclass this class and extend it
8687
"""
8788

8889
def __init__(
@@ -97,6 +98,7 @@ def __init__(
9798
bin_path=None,
9899
description=None,
99100
record_as_success=False,
101+
**kwargs,
100102
):
101103
self.command = command
102104
self.shell = shell

0 commit comments

Comments
 (0)