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
Overload hash generation functions to make return types more specific
Before this change, the return type for these functions was always
`bytes| str`. However, the type can be narrowed based on the value
passed to `raw_output`.
This change adds overload annotations for the two allowable values to
allow type checkers to narrow the type and correctly infer the exact
return type.
Resolves#2046
0 commit comments