Skip to content

Fix a few type annotations that may confuse people - #25645

Merged
ericl merged 3 commits into
ray-project:masterfrom
jianoaix:typeannotation
Jun 10, 2022
Merged

ericl merged 3 commits into
ray-project:masterfrom
jianoaix:typeannotation

Conversation

@jianoaix

Copy link
Copy Markdown
Contributor

Why are these changes needed?

Incorrect type annotation hurts code readability, although they are not enforced in Python.

Related issue number

n/a

Checks

@jianoaix jianoaix changed the title Typeannotation Fix a few type annotations that may confuse people Jun 10, 2022

@ericl ericl left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lgtm. Maybe we can start enforcing checks too in lint.

@clarkzinzow clarkzinzow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

@jianoaix

Copy link
Copy Markdown
Contributor Author

That will be great, type checking is really helpful, even it's lint

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.

3 participants