flake8
passed.
JSHint
passed.
Review Request #14511 — Created July 18, 2025 and submitted
get_object_or_none()
now uses aTypeVar
to type the returned object
as an instance of the provided model, preserving that type. This ensures
we don't end up with anUnknown
type that we then have to manually map
to a type.
Unit tests pass.
Verified the typing of the returned object was correct when using the
function.
Summary | ID |
---|---|
c6df45de6815e1e4336944489d6509a456d2aece |