Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ if hero.team:

## Optional Relationship Attributes

Notice that in the `Hero` class, the type annotation for `team` is `Optional[Team]`.
Notice that in the `Hero` class, the type annotation for `team` is `Team | None` (which is equivalent to `Optional[Team]` in both Python 3.7+ and 3.9+).

This means that this attribute could be `None`, or it could be a full `Team` object.

Expand Down
Loading