Skip to content

Commit 8e79a69

Browse files
authored
Fix type annotations in an example (#10351)
Changed the return type annotation for `__init__` from `int` to `None`
1 parent 3bdef9f commit 8e79a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/doc/using_type_annotations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Consider this example:
8383
.. code-block::
8484
8585
class Point:
86-
def __init__(self, x: int, y: int) -> int:
86+
def __init__(self, x: int, y: int) -> None:
8787
self.x = x
8888
self.y = y
8989

0 commit comments

Comments
 (0)