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

Make .circleci Conf class uses dataclasses; use types. #21284

Closed
wants to merge 4 commits into from

Conversation

ezyang
Copy link
Contributor

@ezyang ezyang commented Jun 3, 2019

Stack from ghstack:

As .circleci config generation script is Python 3 only, let's use
some very helpful Python 3 affordances, namely dataclass, which
automatically generates constructors and printing functions for
"data" like classes.

Actual mypy checking of these scripts is not quite here yet.

Signed-off-by: Edward Z. Yang ezyang@fb.com

gh-metadata: pytorch pytorch 21284 gh/ezyang/152/head

Differential Revision: D15621908

As .circleci config generation script is Python 3 only, let's use
some very helpful Python 3 affordances, namely dataclass, which
automatically generates constructors and printing functions for
"data" like classes.

Actual mypy checking of these scripts is not quite here yet.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
@pytorchbot pytorchbot added the module: ci Related to continuous integration label Jun 3, 2019
@ezyang ezyang requested a review from kostmo June 3, 2019 15:58
Make PyTorch Conf class uses dataclasses; use types.

As .circleci config generation script is Python 3 only, let's use
some very helpful Python 3 affordances, namely dataclass, which
automatically generates constructors and printing functions for
"data" like classes.

Actual mypy checking of these scripts is not quite here yet.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

gh-metadata: pytorch pytorch 21284 gh/ezyang/152/head
@ezyang ezyang changed the title Make PyTorch Conf class uses dataclasses; use types. Make .circleci Conf class uses dataclasses; use types. Jun 3, 2019
Make .circleci Conf class uses dataclasses; use types.

As .circleci config generation script is Python 3 only, let's use
some very helpful Python 3 affordances, namely dataclass, which
automatically generates constructors and printing functions for
"data" like classes.

Actual mypy checking of these scripts is not quite here yet.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

gh-metadata: pytorch pytorch 21284 gh/ezyang/152/head
Make .circleci Conf class uses dataclasses; use types.

As .circleci config generation script is Python 3 only, let's use
some very helpful Python 3 affordances, namely dataclass, which
automatically generates constructors and printing functions for
"data" like classes.

Actual mypy checking of these scripts is not quite here yet.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

gh-metadata: pytorch pytorch 21284 gh/ezyang/152/head
@facebook-github-bot
Copy link
Contributor

@ezyang merged this pull request in ae42a11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merged module: ci Related to continuous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants