Skip to content

Conversation

@intgr
Copy link
Contributor

@intgr intgr commented Sep 27, 2025

A few type hints are deliberately not aligned with implementation signatures.

Documented why this is.

A few type hints are deliberately not aligned with implementation signatures. Document why this is.
@intgr intgr requested a review from Copilot September 27, 2025 12:30

This comment was marked as off-topic.

self,
child_relation: RelatedField = ...,
# DISCREPANCY: signature defaults `child_relation=None`, but actually crashes when `None` is provided.
child_relation: RelatedField,
Copy link
Contributor Author

@intgr intgr Sep 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only functional change here -- removed the default value = ...

@intgr
Copy link
Contributor Author

intgr commented Sep 27, 2025

Merging myself as trivial change.

@intgr intgr merged commit 85ffc91 into typeddjango:master Sep 27, 2025
11 checks passed
@intgr intgr deleted the document-discrepancies branch September 27, 2025 12:54
@intgr intgr self-assigned this Sep 27, 2025
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.

1 participant