| 20 | |
| 21 | |
| 22 | class Point: |
| 23 | |
| 24 | x: float |
| 25 | y: float |
| 26 | |
| 27 | def __init__(self, x: float, y: float): |
| 28 | |
| 29 | self.x = x |
| 30 | self.y = y |
| 31 | |
| 32 | def __repr__(self): |
| 33 | |
| 34 | return f"( {self.x},{self.y} )" |
| 35 | |
| 36 | def __hash__(self): |
| 37 | |
| 38 | return hash((self.x, self.y)) |
| 39 | |
| 40 | def __eq__(self, other): |
| 41 | |
| 42 | return (self.x, self.y) == (other.x, other.y) |
| 43 | |
| 44 | |
| 45 | class Segment: |
no outgoing calls
no test coverage detected