Here's the code I have in django-modern-rest:
def from_python(
unstructured: Any,
model: Any,
*,
strict: bool | None,
) -> Any:
return msgspec.convert(
unstructured,
model,
strict=strict or False,
)
strict or False trigger WPS366, however, it is not correct. False is the default boolen value, when None is passed.
@j2cry this is a bug in 1.6.0
Are you interested in fixing this?
Here's the code I have in
django-modern-rest:strict or FalsetriggerWPS366, however, it is not correct.Falseis the default boolen value, whenNoneis passed.@j2cry this is a bug in 1.6.0
Are you interested in fixing this?