Skip to content

Commit

Permalink
Chore: update docstring with description of Expression.meta
Browse files Browse the repository at this point in the history
  • Loading branch information
georgesittas committed Jul 30, 2023
1 parent 7ac4e82 commit 78b0eed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sqlglot/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ class Expression(metaclass=_Expression):
uses to refer to it.
comments: a list of comments that are associated with a given expression. This is used in
order to preserve comments when transpiling SQL code.
_type: the `sqlglot.expressions.DataType` type of an expression. This is inferred by the
type: the `sqlglot.expressions.DataType` type of an expression. This is inferred by the
optimizer, in order to enable some transformations that require type information.
meta: a dictionary that can be used to store useful metadata for a given expression.
Example:
>>> class Foo(Expression):
Expand Down

0 comments on commit 78b0eed

Please sign in to comment.