Answer the question
In order to leave comments, you need to log in
How to specify in this code that the function returns a tuple?
from typing import NoReturn
class Point(object):
def __init__(self, coordx: int, coordy: int) -> NoReturn:
self.coordx = coordx
self.coordy = coordy
def get_x(self) -> int:
return self.coordx
def get_y(self) -> int:
return self.coordy
def get_coords(self) -> ****:
return (self.coordx, self.coordy)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question