Skip to content

Commit

Permalink
Consolidate datatypes submodule
Browse files Browse the repository at this point in the history
Datatypes, Responses, Enums
  • Loading branch information
ManicJamie committed Jun 3, 2024
1 parent 3c3efed commit b53e761
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
4 changes: 3 additions & 1 deletion src/speedruncompy/datatypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
Missing attributes remain available through both objectlike and dictlike interfaces,
so you can treat them as normal (albeit without type hinting)."""

from ._impl import LenientDatatype, Datatype # noqa

from .defs import * # noqa
from ._impl import LenientDatatype, Datatype, LenientDatatype # noqa
from . import responses, enums, _impl # noqa
11 changes: 1 addition & 10 deletions src/speedruncompy/datatypes/defs.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
"""
Useful datatypes in both a dictlike and objectlike interface, to facilitate type hinting.
Note that the attribute hints may not be exhaustive;
while I endeavour to keep these up to date, updates to the v2 API are unannounced and may be missed.
Missing attributes should remain available through both objectlike and dictlike interfaces,
so you can treat them as normal (albeit without type hinting).
"""
from ._impl import Datatype, OptField
from ..enums import *
from .enums import *

class StaticAsset(Datatype):

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
from types import NoneType
from .datatypes import *
from typing import Any

from ._impl import Datatype
from .defs import *


class r_Empty(Datatype):
"""No Content"""

Expand Down

0 comments on commit b53e761

Please sign in to comment.