Skip to content

Commit

Permalink
Linting pass 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ManicJamie committed Apr 28, 2024
1 parent 339de94 commit 1bd6456
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/speedruncompy/datatypes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .defs import *
from ._impl import LenientDatatype, srcpyJSONEncoder, Datatype, LenientDatatype
from .defs import * # noqa
from ._impl import LenientDatatype, srcpyJSONEncoder, Datatype, LenientDatatype # noqa

from . import config
from . import config # noqa
3 changes: 2 additions & 1 deletion src/speedruncompy/datatypes/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ class CoercionLevel(enum.IntEnum):
ENABLED = 0
STRICT = 1


COERCION: typing.Union[CoercionLevel, int] = 0
"""How aggressively to enforce type coercion.
-1: Disabled; types will not be coerced. WARN: field accessors will break!
0: Enabled; types will be coerced. Sends log warnings on incomplete types.
1: Strict; types will be coerced. Raises errors on incomplete types.
"""
"""

0 comments on commit 1bd6456

Please sign in to comment.