Skip to content

Conversation

intgr
Copy link
Contributor

@intgr intgr commented Oct 22, 2023

  • Many args that defaulted to None weren't typed as accepting None.
  • Also relation field source= was typed to accept Callable | str, but callable was never allowed. It may be the name of a method as string.

Related issues

* Also relation field `source=` was typed to accept `Callable | str`, but callable was never allowed. It may be the *name* of a method as string.
@intgr intgr force-pushed the fix-Field-arg-Noneability branch from 62c21a5 to ceda9cb Compare October 23, 2023 08:44
@intgr intgr changed the title Fix Field constructor argument None'ability Allow None for several Field constructor arguments Oct 23, 2023
@intgr intgr merged commit 3a0197a into typeddjango:master Oct 23, 2023
@intgr intgr deleted the fix-Field-arg-Noneability branch October 23, 2023 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants