jaimeferj commented on PR #2561:
URL: https://github.com/apache/iceberg-python/pull/2561#issuecomment-3382651504
> ```python
> def _to_unbound_term(term: Union[str, UnboundTerm[Any]]) ->
UnboundTerm[Any]:
> if isinstance(term, str),
> return Reference(term)
> elif isinstance(term, UnboundTerm):
> return term
> else:
> raise ValueError(f"Expected UnboundTerm or str, but got: {term}")
> return Reference(term) if isinstance(term, str) else term
> ```
I do not ignore the type annotation, it is the current implementation and a
current test that is ignoring the implementation. I am trying to just implement
the issue requirement and since now the types are checked in runtime by
pydantic the (old) test is not passing.
--
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]