https://kedro.org/ logo
#random
Title
# random
n

Nok Lam Chan

05/12/2023, 10:35 AM
I am playing with Pylance settings today and I found that it offers some feature that shows you the static type, when you double click on the hint it will material the type hint so you don’t have to manually typing it. (I am not asking you to type every single variable but it could be an useful feature)
j

Juan Luis

05/12/2023, 10:39 AM
Copy code
self.base_env = base_env
self.default_run_env = default_run_env
when are we starting to use
dataclass
or
attrs
? 😄
😂 1
n

Nok Lam Chan

05/12/2023, 10:50 AM
I remember it has some weird interaction with
MagicMock
as it doesn’t understand the attributes that exists and causing issues in tests. I didn’t have time to continue, if you know something about it will be awseom.
j

Juan Luis

05/12/2023, 10:57 AM
meh, both issues closed as won't fix sadcat2
n

Nok Lam Chan

05/12/2023, 10:58 AM
I suspect there is a solution, but I just couldn’t find it.
It’s kind of stupid that you save the
self.x = x
in your class but you end up have to manually create the attributes in your tests….