Skip to content

Fix type annotations in a documentation example #10351

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

Merged
merged 2 commits into from
Apr 21, 2021
Merged

Conversation

3ok
Copy link
Contributor

@3ok 3ok commented Apr 21, 2021

Changed the return type annotation for __init__ from int to None

Description

In one of the examples in mypyc's documentation, the constructor doesn't have a correct return type

class Point:
    def __init__(self, x: int, y: int) -> int:
        ...

I have changed it to None (according to mypy's documentation for example)

Test Plan

No particular test plan, it is a simple typo fix in the documentation.

3ok added 2 commits April 21, 2021 20:14
Changed the return type annotation for `__init__` from `int` to `None`
Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Thanks!

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