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
typesalt ="Only used if `hash=true`. In this case the `hash` will be purely computed from `typesalt` and `getproperties(T)`. The type `T` will not be used otherwise. This makes the hash more likely to stay constant, when executing on a different machine or julia version",
52
56
)
53
57
54
58
if (keys(BATTERIES_DEFAULTS) !=keys(BATTERIES_DOCSTRINGS))
@@ -104,11 +108,20 @@ macro batteries(T, kw...)
104
108
Got: $nt
105
109
""")
106
110
end
107
-
if!(val isa Bool)
111
+
if val isa Bool
112
+
113
+
elseif pname ==:typesalt
114
+
if!(val isa Union{Nothing,Integer})
115
+
error("""`typesalt` must be literally `nothing` or an unsigned integer. Got:
0 commit comments