Spaces:
Running
on
Zero
Running
on
Zero
from dataclasses import dataclass | |
class Shape: | |
"""Base class for shapes""" | |
x: int | |
y: int | |
class Circle(Shape): | |
"""Circle shape""" | |
radius: int | |
class Rectangle(Shape): | |
"""Rectangle shape""" | |
width: int | |
height: int |