Skip to content

Commit

Permalink
Merge pull request #128 from evo-company/optimize-Operation-class-mem
Browse files Browse the repository at this point in the history
optimize Operation class mem by using __slots__
  • Loading branch information
kindermax committed Sep 4, 2023
2 parents a049a00 + 11bcff9 commit edb7a07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hiku/readers/graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,8 @@ class OperationType(enum.Enum):
class Operation:
"""Represents requested GraphQL operation"""

__slots__ = ("type", "query", "name")

def __init__(
self, type_: OperationType, query: Node, name: Optional[str] = None
):
Expand Down

0 comments on commit edb7a07

Please sign in to comment.