TouK / nussknacker

Low-code tool for automating actions on real time data | Stream processing for the users.
https://nussknacker.io
Apache License 2.0
664 stars 93 forks source link

Let DictKeyWithLabelExpressionTypingInfo's TypingResult to be aware of associated value #7142

Closed DeamonDev closed 1 week ago

DeamonDev commented 2 weeks ago

💥 Proposal

Currently at the moment of creation of DictKeyWithLabelExpressionTypingInfo the TypingResult is passed down. It might happen that TypingResult was evaluated at the early stage of deployment and it could be enhanced thanks to the information about passed value. I propose to check whether passed expectedType is instance of TypedClass (which is unaware of value) and in such a case lift it to TypedObjectWithValue.