Skip to content

Commit

Permalink
Update docs/spec/enums.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja authored Oct 29, 2024
1 parent 1e2d4dc commit 073421a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/spec/enums.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ statically in cases where dynamic values are used.
species: str # Non-member attribute

CAT = 1 # Member attribute with known value and type
DOG = cast(str, ...) # Member attribute with unknown value and known type
DOG = cast(int, ...) # Member attribute with unknown value and known type
BIRD = ... # Member attribute with unknown value and type

* Members defined within an enum class should not include explicit type
Expand Down

0 comments on commit 073421a

Please sign in to comment.