1
Fork 0
mirror of https://github.com/Steffo99/lihzahrd.git synced 2024-10-16 06:27:29 +00:00

📔 Fix docstrings for certain files

This commit is contained in:
Steffo 2022-02-11 19:44:49 +01:00
parent 21e2983072
commit 83b74ecaf4
Signed by: steffo
GPG key ID: 6965406171929D01
4 changed files with 10 additions and 2 deletions

View file

@ -1,8 +1,8 @@
class Coordinates:
__slots__ = "x", "y"
"""A pair of coordinates."""
__slots__ = "x", "y"
def __init__(self, x, y):
self.x = x
self.y = y

View file

@ -7,6 +7,8 @@ from .rect import Rect
class FileReader:
"""Helper class for deserializing a Terraria world file."""
__slots__ = ("file",)
def __init__(self, file: typing.IO):

View file

@ -2,6 +2,10 @@ import typing
class Pointers:
"""Pointers to the various sections of the Terraria save file.
All values are in number of bytes from the start."""
__slots__ = (
"file_format",
"world_header",

View file

@ -1,4 +1,6 @@
class Rect:
"""Class delimining the bounds of a rectangle."""
__slots__ = "left", "right", "top", "bottom"
def __init__(self, left, right, top, bottom):