pixie
pixie copied to clipboard
Compiler: function type checker points to the variable declaration rather than the function call
import px
def service_let_graph(start_time: str, end_time: str):
return px.DataFrame('http_events', start_time=start_time, stop_time=end_time)
end_time =px.now()
px.display(service_let_graph('-5m',end_time))
causes an error on line 5 which is super confusing.
!image-20220615-145659.png|width=970,height=299!
Instead the error should be on line 6 pointing to end_time reference.
┆Issue is synchronized with this Jira Bug by Unito ┆Attachments: image-20220615-145659.png