Hey there :slightly_smiling_face: VScode is throwing me an error message with that definition: ```@step(enable_cache=True) def step_1(param:Params) -> Output(clf_class=type, config=dict):``` ```Illegal type annotation: call expression not allowed Pylance(reportGeneralTypeIssues)``` Am I missing something here ?
Last active 14 days ago
7 replies
2 views
- NI
Hey there :slightlysmilingface:
VScode is throwing me an error message with that definition:
def step_1(param:Params) -> Output(clf_class=type, config=dict):```
Illegal type annotation: call expression not allowed Pylance(reportGeneralTypeIssues)```
Am I missing something here ? - HA
Could you show us what
Params
is? - NI
Sure !
class Params(BaseParameters): """Level param (contentieux, themes, subthemes)""" level: str = "" court = "CA-CASS" court_list = ["CA", "CASS"]
- MI
Are you sure this is an error? I think this might just be a linting warning related to the
Output
class which unfortunately is not a “valid” type hint at the moment - NI
It's not causing an error at runtime so it's fine, I was just curious about the why, because a few days ago the editor wasn't throwing me this error message
- HA
Not sure about pylance
- MI
It was probably because you had no
-> Output
in any of your steps. We’re not sure on how to best make this conform to python typing, but it’s on our todo list :slightlysmilingface:
Last active 14 days ago
7 replies
2 views