Skip to content

Parsing input string parameter as integer instead #240

Open
@zackzhangverkada

Description

@zackzhangverkada

Bug Report

Parsing input string parameter as integer instead. It should be an integer not string.

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

imageSHA = option("imageSHA", type="str")
imageSHA2 = imageSHA + '2'

2. What did you expect to see? (Required)

kcl run --argument imageSHA="12e1"
imageSHA: '12e1'
imageSHA2: '12e12'

3. What did you see instead

kcl run --argument imageSHA="12e1"
imageSHA: '120'
imageSHA2: '1202'

4. What is your KCL components version? (Required)

0.9.8

Slack Thread

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions