Resolve "get_last does not work with Endpoint object"
Description
This MR adds get_last
as a valid operation for stream entrypoints, and adds the validate_entrypoint
decorator on get_last
method to ensure passed topic will be an Entrypoint
object or a string.
The validate_entrypoint
object is a decorator, that has the same funtionality as check_topic
combined
with _validate_entrypoint
.
Passing anything else than a string or an Entrypoint object to a method expecting an entry point will
raise a TypeError
.
Closes #236 (closed)