rdblue commented on code in PR #6232:
URL: https://github.com/apache/iceberg/pull/6232#discussion_r1028308314


##########
python/pyiceberg/expressions/literals.py:
##########
@@ -207,7 +207,7 @@ def __init__(self, value: int):
         super().__init__(value, int)
 
     @singledispatchmethod
-    def to(self, type_var: IcebergType) -> Literal:
+    def to(self, type_var: IcebergType) -> Literal:  # type: ignore

Review Comment:
   Is there no way to return an unknown type from a method in Python? In Java, 
we would just declare that the method returns `Literal<T>` where `T` comes from 
context. Then you get a type that may not be correct, but is at least not 
`<nothing>`.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to