pixie icon indicating copy to clipboard operation
pixie copied to clipboard

Compiler: function type checker points to the variable declaration rather than the function call

Open sync-by-unito[bot] opened this issue 3 years ago • 0 comments

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

sync-by-unito[bot] avatar Jul 12 '22 05:07 sync-by-unito[bot]