Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support mypy statically type check #85

Open
zchee opened this issue Nov 12, 2016 · 5 comments
Open

support mypy statically type check #85

zchee opened this issue Nov 12, 2016 · 5 comments

Comments

@zchee
Copy link
Member

zchee commented Nov 12, 2016

We want to easily maintenance to the source.
I think mypy type check is a very good feature and approach.

@blueyed
Copy link
Collaborator

blueyed commented Nov 12, 2016

You want to run this on CI/Travis?

@zchee
Copy link
Member Author

zchee commented Nov 14, 2016

@blueyed Ah, just only for easily maintenance for developers. Not for testing.
I mean, introduction of a pseudo type checking.

@blueyed
Copy link
Collaborator

blueyed commented Nov 14, 2016

So you mean to use function annotations in the source code?

@zchee
Copy link
Member Author

zchee commented Nov 14, 2016

@blueyed Yes, like

x = 1 # type: int
x = 1.0 # type: float
x = True # type: bool
x = "test" # type: str

x = [1] # type: List[int]
x = set([6, 7]) # type: Set[int]

I don't know Python community; Use mypy is a bad idea?

@Mic92
Copy link

Mic92 commented Nov 16, 2016

mypy is currently getting more and more attention by the community, so it is a good to have support for that.

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

No branches or pull requests

3 participants