8000 [mypyc] Support new syntax for generic functions and classes (PEP 695) by JukkaL · Pull Request #17357 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

[mypyc] Support new syntax for generic functions and classes (PEP 695) #17357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Jun 11, 2024
Merged
Prev Previous commit
Next Next commit
Remove incomplete changes
  • Loading branch information
JukkaL committed Jun 10, 2024
commit 2254b36650281724f472695e92e01ff94ee40062
5 changes: 0 additions & 5 deletions mypyc/irbuild/statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
TempNode,
TryStmt,
TupleExpr,
TypeAliasStmt,
WhileStmt,
WithStmt,
YieldExpr,
Expand Down Expand Up @@ -1016,7 +1015,3 @@ def transform_await_expr(builder: IRBuilder, o: AwaitExpr) -> Value:

def transform_match_stmt(builder: IRBuilder, m: MatchStmt) -> None:
m.accept(MatchVisitor(builder, m))


def transform_type_alias_stmt(builder: IRBuilder, m: TypeAliasStmt) -> None:
assert False
5 changes: 0 additions & 5 deletions mypyc/irbuild/visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
TryStmt,
TupleExpr,
TypeAliasExpr,
TypeAliasStmt,
TypeApplication,
TypedDictExpr,
TypeVarExpr,
Expand Down Expand Up @@ -137,7 +136,6 @@
transform_raise_stmt,
transform_return_stmt,
transform_try_stmt,
transform_type_alias_stmt,
transform_while_stmt,
transform_with_stmt,
transform_yield_expr,
Expand Down Expand Up @@ -251,9 +249,6 @@ def visit_nonlocal_decl(self, stmt: NonlocalDecl) -> None:
def visit_match_stmt(self, stmt: MatchStmt) -> None:
transform_match_stmt(self.builder, stmt)

def visit_type_alias_stmt(self, stmt: TypeAliasStmt) -> None:
transform_type_alias_stmt(self.builder, stmt)

# Expressions

def visit_name_expr(self, expr: NameExpr) -> Value:
Expand Down
0