You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/06/12 19:56:22 UTC
[GitHub] [iceberg] rdblue commented on a diff in pull request #5008: Python: Extend the use of the singleton
rdblue commented on code in PR #5008:
URL: https://github.com/apache/iceberg/pull/5008#discussion_r895226294
##########
python/src/iceberg/expressions/base.py:
##########
@@ -88,7 +89,7 @@ def negate(self) -> "Operation":
}
-class Literal(Generic[T], ABC):
+class Literal(Generic[T], metaclass=ABCMeta):
Review Comment:
Why do we want the reader to know that this is changing a metaclass and not just inheriting from ABC? It seems like bringing a metaclass into the code is more clear about what's happening, but introduces a distinction that people (like me) may not understand or need.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org