summaryrefslogtreecommitdiff
path: root/src/click/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/click/core.py')
-rw-r--r--src/click/core.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/click/core.py b/src/click/core.py
index 77a536a..f226354 100644
--- a/src/click/core.py
+++ b/src/click/core.py
@@ -739,7 +739,9 @@ class Context:
for param in other_cmd.params:
if param.name not in kwargs and param.expose_value:
- kwargs[param.name] = param.get_default(ctx) # type: ignore
+ kwargs[param.name] = param.type_cast_value( # type: ignore
+ ctx, param.get_default(ctx)
+ )
# Track all kwargs as params, so that forward() will pass
# them on in subsequent calls.