From ce186ee36aea1536ce339581b7dc81c5bb71022c Mon Sep 17 00:00:00 2001 From: David Sisson Date: Tue, 8 Oct 2024 00:00:33 -0700 Subject: [PATCH] remove self typing --- src/gateway/converter/symbol_table.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gateway/converter/symbol_table.py b/src/gateway/converter/symbol_table.py index ed3293c..6b4e373 100644 --- a/src/gateway/converter/symbol_table.py +++ b/src/gateway/converter/symbol_table.py @@ -2,7 +2,6 @@ """Routines to convert SparkConnect plans to Substrait plans.""" import dataclasses -from typing import Self @dataclasses.dataclass @@ -18,7 +17,7 @@ def __init__(self, name: str, child_names=None): self.name = name self.child_names = child_names or [] - def alias(self, name: str) -> Self: + def alias(self, name: str): """Create a copy with an alternate name.""" new_field = Field(name) new_field.child_names = self.child_names