You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defnamed(self, name):
# noinspection GrazieInspection"""Specify the name of the parser for easier debugging. Type: `(str) -> Parser[A, B]` This name is used in the debug-level parsing log. You can also get it via the `Parser.name` attribute. Examples: ```pycon >>> expr = (a("x") + a("y")).named("expr") >>> expr.name 'expr' ``` ```pycon >>> expr = a("x") + a("y") >>> expr.name "('x', 'y')" ``` !!! Note You can enable the parsing log this way: ```python import logging logging.basicConfig(level=logging.DEBUG) import funcparserlib.parser funcparserlib.parser.debug = True ``` The way to enable the parsing log may be changed in future versions. """self.name=namereturnself
Trying to vendor this results in:
Encountered import that cannot be transformed for a namespace.
File "lint_lib/_vendor/funcparserlib/parser.py", line 148
import funcparserlib.parser
This seems somewhat silly, given it's in a docstring.
The text was updated successfully, but these errors were encountered:
funcparserlib.parser has:
Trying to vendor this results in:
This seems somewhat silly, given it's in a docstring.
The text was updated successfully, but these errors were encountered: