Skip to content

Commit

Permalink
Improve segment.py (#785)
Browse files Browse the repository at this point in the history
* Add and revise documentation.

* Corrected return directives.

* Minor documentation improvements.

* Add class docstring and minor corrections.

---------

Co-authored-by: knutnergaard <knutnergaard@users.noreply.github.com>
  • Loading branch information
knutnergaard and knutnergaard authored Nov 22, 2024
1 parent cb9abed commit 76613ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/fontParts/base/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class BaseSegment(
DeprecatedSegment,
RemovedSegment,
):
"""Represent the basis for a segment object."""

def _setPoints(self, points: CollectionType[BasePoint]) -> None:
if hasattr(self, "_points"):
raise AssertionError("segment has points")
Expand Down

0 comments on commit 76613ea

Please sign in to comment.