Removed extra "pass" statements

This commit is contained in:
Salvador E. Tropea 2022-02-16 19:04:44 -03:00
parent 47d87663c9
commit 751f093de9
1 changed files with 0 additions and 6 deletions

View File

@ -43,7 +43,6 @@ def _mcpyrate_quotes_attr(attr, *, force_import=False):
class QuasiquoteMarker(ASTMarker): class QuasiquoteMarker(ASTMarker):
"""Base class for AST markers used by quasiquotes. Compiled away by `astify`.""" """Base class for AST markers used by quasiquotes. Compiled away by `astify`."""
pass
class SpliceNodes(QuasiquoteMarker): class SpliceNodes(QuasiquoteMarker):
"""Splice a `list` of AST nodes into the surrounding context. """Splice a `list` of AST nodes into the surrounding context.
@ -51,7 +50,6 @@ class SpliceNodes(QuasiquoteMarker):
Command sent by `ast_literal` (run-time part of `a`) Command sent by `ast_literal` (run-time part of `a`)
to `splice_ast_literals` (run-time part of the surrounding `q`). to `splice_ast_literals` (run-time part of the surrounding `q`).
""" """
pass
class QuasiquoteSearchDone(Done, QuasiquoteMarker): class QuasiquoteSearchDone(Done, QuasiquoteMarker):
"""Marker used by nested quasiquotes to tell the expander a subtree is already done. """Marker used by nested quasiquotes to tell the expander a subtree is already done.
@ -64,14 +62,12 @@ class QuasiquoteSearchDone(Done, QuasiquoteMarker):
2. We need to be able to eliminate these (and only these) before 2. We need to be able to eliminate these (and only these) before
generating the final quoted output. generating the final quoted output.
""" """
pass
# -------------------------------------------------------------------------------- # --------------------------------------------------------------------------------
# Unquote commands for `astify`. Each type corresponds to an unquote macro. # Unquote commands for `astify`. Each type corresponds to an unquote macro.
class Unquote(QuasiquoteMarker): class Unquote(QuasiquoteMarker):
"""Interpolate the value of the given subtree into the quoted tree. Emitted by `u[]`.""" """Interpolate the value of the given subtree into the quoted tree. Emitted by `u[]`."""
pass
class LiftSourcecode(QuasiquoteMarker): class LiftSourcecode(QuasiquoteMarker):
@ -95,12 +91,10 @@ class ASTLiteral(QuasiquoteMarker): # similar to `macropy`'s `Literal`, but sup
class ASTList(QuasiquoteMarker): class ASTList(QuasiquoteMarker):
"""Interpolate the given iterable of AST nodes as an `ast.List` node. Emitted by `s[]`.""" """Interpolate the given iterable of AST nodes as an `ast.List` node. Emitted by `s[]`."""
pass
class ASTTuple(QuasiquoteMarker): class ASTTuple(QuasiquoteMarker):
"""Interpolate the given iterable of AST nodes as an `ast.Tuple` node. Emitted by `t[]`.""" """Interpolate the given iterable of AST nodes as an `ast.Tuple` node. Emitted by `t[]`."""
pass
class Capture(QuasiquoteMarker): # like `macropy`'s `Captured` class Capture(QuasiquoteMarker): # like `macropy`'s `Captured`