Skip to content

Commit 47591fb

Browse files
committed
fixing ruff errors
1 parent ae9bd0f commit 47591fb

File tree

7 files changed

+15
-19
lines changed

7 files changed

+15
-19
lines changed

Diff for: geometry/shapes/ellipses/circle.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import math
22

3-
from geometry.shapes.shape_types.closed_shapes import closedShape
3+
from geometry.shapes.shape_types.closed_shapes import ClosedShape
44

55

6-
class Circle(closedShape):
6+
class Circle(ClosedShape):
77

88
"""
99
a structure which represents a

Diff for: geometry/shapes/ellipses/ellipse.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import math
22

3-
from geometry.shapes.shape_types.closed_shapes import closedShape
3+
from geometry.shapes.shape_types.closed_shapes import ClosedShape
44

55

6-
class Ellipse(closedShape):
6+
class Ellipse(ClosedShape):
77

88
"""
99
a structure which represents a

Diff for: geometry/shapes/polygon/polygon.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
from geometry.angles.angle import Angle
2-
from geometry.shapes.shape_types.closed_shapes import closedShape
3-
from geometry.shapes.shape_types.intersecting_self_shapes import intersectSelfShape
1+
from geometry.shapes.shape_types.closed_shapes import ClosedShape
2+
from geometry.shapes.shape_types.intersecting_self_shapes import IntersectSelfShape
43
from geometry.shapes.side import Side
54

65

7-
class Polygon(closedShape, intersectSelfShape):
6+
class Polygon(ClosedShape, IntersectSelfShape):
87

98
"""
109
an abstract class which represents a

Diff for: geometry/shapes/shape.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from abc import ABC, abstractmethod
22

33

4-
class shape(ABC):
4+
class Shape(ABC):
55

66
"""
77
interface which represents a geometrical shape
@@ -14,7 +14,6 @@ def is_similar(self, compared_shape):
1414
a method for comparing with another shape,
1515
which also implements this interface
1616
"""
17-
pass
1817

1918
@abstractmethod
2019
def split(self):
@@ -23,7 +22,6 @@ def split(self):
2322
into a certain quantity of pieces,
2423
following a specific algorithm
2524
"""
26-
pass
2725

2826
"""
2927
to do: create a factory method for creating a specific shape

Diff for: geometry/shapes/shape_types/closed_shapes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from abc import ABC, abstractmethod
22

3-
from geometry.shapes.shape import shape
3+
from geometry.shapes.shape import Shape
44

55

6-
class closedShape(shape, ABC):
6+
class ClosedShape(Shape, ABC):
77
"""
88
an interface which represents shapes
99
that start and end at the same point [closed shape]

Diff for: geometry/shapes/shape_types/intersecting_self_shapes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from abc import ABC, abstractmethod
22

3-
from geometry.shapes.shape import shape
3+
from geometry.shapes.shape import Shape
44

55

6-
class intersectSelfShape(shape, ABC):
6+
class IntersectSelfShape(Shape, ABC):
77
"""
88
an interface which represents polygons
99
some of whose edges cross each other [self intersecting shapes]

Diff for: geometry/shapes/shape_types/open_shapes.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
from abc import abstractmethod
1+
from abc import ABC, abstractmethod
2+
from geometry.shapes.shape import Shape
23

3-
import shape
44

5-
6-
class OpenShape(shape, ABC):
5+
class OpenShape(Shape, ABC):
76
"""
87
an interface which represents shapes or figures
98
with different starting and ending points [open shapes]

0 commit comments

Comments
 (0)