You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if I oversee something, but it looks like both solutions work in my case.
When I do not have the value in my config file, the default VisCheck.A is in the settings. When I set it to an object with invalid type (e.g. np.random.default_rng()) it fails with
Generator(PCG64) at 0x7F64087CF840 is not a valid VisCheck
For me from "user" view it looks like both variants are equivalent 😅
Yeah, I guess they are equivalent because the casting function will usually bypass the value when called over an already casted value (like VisCheck(VisCheck('a'))).
We can say that it's usually equivalent, but I suggest describing that the cast is called for defaults.
Currently it is not clear from the documentation when using
default
together withcast
, whethere.g.
It would be nice to have a hint in the docs :)
EDIT: Wrong default type in Variant 2 (typo)
The text was updated successfully, but these errors were encountered: