Skip to content

Commit

Permalink
[asjson] AsJSONMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Nov 2, 2023
1 parent 6d9194d commit cec1458
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tatsu/objectmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dataclasses import dataclass
import weakref

from .util import asjson, asjsons, ASJSONMixin
from .util import asjson, asjsons, AsJSONMixin
from .infos import CommentInfo, ParseInfo
from .ast import AST

Expand All @@ -14,7 +14,7 @@


@dataclass(eq=False)
class Node(ASJSONMixin):
class Node(AsJSONMixin):
_parent: Node|None = None
_children: list[Node]|None = None
ast: AST|None = None
Expand Down
2 changes: 1 addition & 1 deletion tatsu/util/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
)


class ASJSONMixin:
class AsJSONMixin:
def __json__(self, seen=None):
return asjson(
{
Expand Down

0 comments on commit cec1458

Please sign in to comment.