1
Fork 0
mirror of https://github.com/Steffo99/lihzahrd.git synced 2024-11-21 15:44:24 +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,7 +1,7 @@
class Coordinates: class Coordinates:
__slots__ = "x", "y"
"""A pair of coordinates.""" """A pair of coordinates."""
__slots__ = "x", "y"
def __init__(self, x, y): def __init__(self, x, y):
self.x = x self.x = x

View file

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

View file

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

View file

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