Merge pull request #1903 from davep/doc-coordinate

Add property docstrings to Coordinate
This commit is contained in:
Will McGugan 2023-02-28 17:18:37 +00:00 committed by GitHub
commit 5d6f6a12ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,10 @@ class Coordinate(NamedTuple):
"""An object representing a row/column coordinate within a grid."""
row: int
"""The row of the coordinate within a grid."""
column: int
"""The column of the coordinate within a grid."""
def left(self) -> Coordinate:
"""Get the coordinate to the left.