Skip to content

Commit

Permalink
rename PyFlowGraph38Static to PyFlowGraph310Static
Browse files Browse the repository at this point in the history
Summary: doeswhatitsaysonthetin

Reviewed By: alexmalyshev

Differential Revision: D55654859

fbshipit-source-id: 221a5823e1dfbfa0a5e4fc7d8d0cbca9a47754e0
  • Loading branch information
pilleye authored and facebook-github-bot committed Apr 2, 2024
1 parent d52485f commit b245b1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cinderx/PythonLib/cinderx/compiler/static/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def clone(self) -> StaticPatternContext:
return pc


class PyFlowGraph38Static(PyFlowGraphCinder):
class PyFlowGraph310Static(PyFlowGraphCinder):
opcode: Opcode = opcode_static.opcode


Expand All @@ -127,7 +127,7 @@ def getCode(self) -> CodeType:


class Static310CodeGenerator(StrictCodeGenerator):
flow_graph = PyFlowGraph38Static
flow_graph = PyFlowGraph310Static
_default_cache: Dict[Type[ast.AST], typingCallable[[...], None]] = {}
pattern_context = StaticPatternContext

Expand Down
6 changes: 3 additions & 3 deletions cinderx/PythonLib/cinderx/compiler/static/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
from .visitor import GenericVisitor

if TYPE_CHECKING:
from . import PyFlowGraph38Static, Static310CodeGenerator
from . import PyFlowGraph310Static, Static310CodeGenerator
from .compiler import Compiler
from .declaration_visitor import DeclarationVisitor
from .module_table import ModuleTable
Expand Down Expand Up @@ -5627,7 +5627,7 @@ def flow_graph(
args: Tuple[str, ...],
check_args: Tuple[...],
return_type_descr: TypeDescr,
) -> PyFlowGraph38Static:
) -> PyFlowGraph310Static:
scope = FunctionScope(func, code_gen.cur_mod, code_gen.scope.klass)
scope.parent = code_gen.scope

Expand All @@ -5646,7 +5646,7 @@ def flow_graph(
def emit_method(
self,
code_gen: Static310CodeGenerator,
graph: PyFlowGraph38Static,
graph: PyFlowGraph310Static,
oparg: int,
) -> None:
code_gen.emit("LOAD_CONST", graph)
Expand Down

0 comments on commit b245b1f

Please sign in to comment.