We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76fb858 commit 14ed005Copy full SHA for 14ed005
1 file changed
scenedetect/_cli/__init__.py
@@ -23,7 +23,7 @@
23
import os
24
import os.path
25
import typing as ty
26
-from copy import deepcopy
+from copy import copy
27
28
import click
29
@@ -391,7 +391,9 @@ def scenedetect(
391
392
def add_hidden_alias(command: click.Command, alias: str):
393
"""Adds a copy of `command` that can be invoked under the name `alias`."""
394
- hidden_command = deepcopy(command)
+ # Shallow copy: deepcopy fails on Python 3.10 + click >=8.3 because click's internal
395
+ # `Sentinel` enum values are not deepcopy-safe.
396
+ hidden_command = copy(command)
397
hidden_command.hidden = True
398
scenedetect.add_command(hidden_command, alias)
399
0 commit comments