@@ -3,87 +3,23 @@ from typing import Any
33from pandas .core .computation import (
44 expr as expr ,
55 ops as ops ,
6- scope as _scope ,
76)
87from pandas .core .computation .expr import BaseExprVisitor as BaseExprVisitor
98from pandas .core .indexes .base import Index
109
11- class PyTablesScope (_scope .Scope ):
12- queryables : dict [str , Any ]
13- def __init__ (
14- self ,
15- level : int ,
16- global_dict = ...,
17- local_dict = ...,
18- queryables : dict [str , Any ] | None = ...,
19- ) -> None : ...
20-
21- class Term (ops .Term ):
22- env = ...
23- def __new__ (cls , name , env , side = ..., encoding = ...): ...
24- def __init__ (self , name , env : PyTablesScope , side = ..., encoding = ...) -> None : ...
25- @property
26- def value (self ): ...
27- @value .setter
28- def value (self , new_value ) -> None : ...
29-
30- class Constant (Term ):
31- def __init__ (self , name , env : PyTablesScope , side = ..., encoding = ...) -> None : ...
32-
3310class BinOp (ops .BinOp ):
3411 op : str
3512 queryables : dict [str , Any ]
3613 encoding = ...
3714 condition = ...
38- def __init__ (
39- self , op : str , lhs , rhs , queryables : dict [str , Any ], encoding
40- ) -> None : ...
41- def prune (self , klass ): ...
42- def conform (self , rhs ): ...
4315 @property
4416 def is_valid (self ) -> bool : ...
4517 @property
4618 def is_in_table (self ) -> bool : ...
47- @property
48- def kind (self ): ...
49- @property
50- def meta (self ): ...
51- @property
52- def metadata (self ): ...
53- def generate (self , v ) -> str : ...
54- def convert_value (self , v ) -> TermValue : ...
5519 def convert_values (self ) -> None : ...
5620
5721class FilterBinOp (BinOp ):
5822 filter : tuple [Any , Any , Index ] | None = ...
59- def invert (self ): ...
60- def format (self ): ...
61- def generate_filter_op (self , invert : bool = ...): ...
62-
63- class JointFilterBinOp (FilterBinOp ):
64- def format (self ) -> None : ...
65-
66- class ConditionBinOp (BinOp ):
67- def invert (self ) -> None : ...
68- def format (self ): ...
69- condition = ...
70-
71- class JointConditionBinOp (ConditionBinOp ):
72- condition = ...
73-
74- class UnaryOp (ops .UnaryOp ):
75- def prune (self , klass ): ...
76-
77- class PyTablesExprVisitor (BaseExprVisitor ):
78- const_type = ...
79- term_type = ...
80- def __init__ (self , env , engine , parser , ** kwargs : Any ) -> None : ...
81- def visit_UnaryOp (self , node , ** kwargs : Any ): ...
82- def visit_Index (self , node , ** kwargs : Any ): ...
83- def visit_Assign (self , node , ** kwargs : Any ): ...
84- def visit_Subscript (self , node , ** kwargs : Any ): ...
85- def visit_Attribute (self , node , ** kwargs : Any ): ...
86- def translate_In (self , op ): ...
8723
8824class PyTablesExpr (expr .Expr ):
8925 encoding = ...
@@ -93,16 +29,13 @@ class PyTablesExpr(expr.Expr):
9329 expr = ...
9430 def __init__ (
9531 self ,
96- where ,
32+ where : Any ,
9733 queryables : dict [str , Any ] | None = ...,
98- encoding = ...,
34+ encoding : Any = ...,
9935 scope_level : int = ...,
10036 ) -> None : ...
101- def evaluate (self ): ...
10237
10338class TermValue :
10439 value = ...
10540 converted = ...
10641 kind = ...
107- def __init__ (self , value , converted , kind : str ) -> None : ...
108- def tostring (self , encoding ) -> str : ...
0 commit comments