unknowntpo commented on code in PR #9242:
URL: https://github.com/apache/gravitino/pull/9242#discussion_r2597307810


##########
clients/client-python/gravitino/api/tag/tag_change.py:
##########
@@ -0,0 +1,144 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+
+from __future__ import annotations
+
+from abc import ABC
+from dataclasses import dataclass, field
+
+from dataclasses_json import config
+
+
+class TagChange(ABC):
+    """Interface for supporting tag changes.
+    This interface will be used to provide tag modification operations for 
each tag."""
+
+    @staticmethod
+    def rename(new_name: str) -> RenameTag:

Review Comment:
   Okay, we can keep this aligned with the current implementations for now. 
Since the TagChange interface in the Java implementation acts like an outer 
class to organize tag-related changes—rather than defining abstract methods 
that force subclasses to implement them—this approach is acceptable.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to