I am playing with Pylance settings today and I fou...
# random
n
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
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
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
meh, both issues closed as won't fix sadcat2
n
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….