Skip to content

Check default value type of Parameter#405

Open
kitagry wants to merge 1 commit intomasterfrom
check-default-type
Open

Check default value type of Parameter#405
kitagry wants to merge 1 commit intomasterfrom
check-default-type

Conversation

@kitagry
Copy link
Member

@kitagry kitagry commented Oct 27, 2024

Check default value of parameter.

import luigi
import gokart
class MyTask(gokart.TaskOnKart):
    foo = luigi.IntParameter(default='s')  # Incompatible default for argument "foo" (default has type "str", argument has type "int")

FOO = enum.auto()

class MyTask(gokart.TaskOnKart):
# NOTE: mypy shows attr-defined error for the following lines, so we need to ignore it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@hiro-o918
Copy link
Contributor

LGTM!!!!!

@hiro-o918
Copy link
Contributor

Oh, CI failed 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants