11#!/usr/bin/env python
22
3- """Top level ``eval`` module.
3+ """
4+ Top level ``eval`` module.
45"""
56
67import tokenize
1516
1617
1718def _check_engine (engine ):
18- """Make sure a valid engine is passed.
19+ """
20+ Make sure a valid engine is passed.
1921
2022 Parameters
2123 ----------
@@ -31,7 +33,6 @@ def _check_engine(engine):
3133 Returns
3234 -------
3335 string engine
34-
3536 """
3637 from pandas .core .computation .check import _NUMEXPR_INSTALLED
3738
@@ -60,7 +61,8 @@ def _check_engine(engine):
6061
6162
6263def _check_parser (parser ):
63- """Make sure a valid parser is passed.
64+ """
65+ Make sure a valid parser is passed.
6466
6567 Parameters
6668 ----------
@@ -88,7 +90,8 @@ def _check_resolvers(resolvers):
8890
8991
9092def _check_expression (expr ):
91- """Make sure an expression is not an empty string
93+ """
94+ Make sure an expression is not an empty string
9295
9396 Parameters
9497 ----------
@@ -105,7 +108,8 @@ def _check_expression(expr):
105108
106109
107110def _convert_expression (expr ):
108- """Convert an object to an expression.
111+ """
112+ Convert an object to an expression.
109113
110114 Thus function converts an object to an expression (a unicode string) and
111115 checks to make sure it isn't empty after conversion. This is used to
@@ -155,7 +159,8 @@ def _check_for_locals(expr, stack_level, parser):
155159def eval (expr , parser = 'pandas' , engine = None , truediv = True ,
156160 local_dict = None , global_dict = None , resolvers = (), level = 0 ,
157161 target = None , inplace = False ):
158- """Evaluate a Python expression as a string using various backends.
162+ """
163+ Evaluate a Python expression as a string using various backends.
159164
160165 The following arithmetic operations are supported: ``+``, ``-``, ``*``,
161166 ``/``, ``**``, ``%``, ``//`` (python engine only) along with the following
0 commit comments