Skip to content

Commit

Permalink
Improve --no-wrap docs
Browse files Browse the repository at this point in the history
Refs   #687.
  • Loading branch information
evhub committed Nov 18, 2022
1 parent 66c5fcc commit 5c4a450
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2198,6 +2198,8 @@ That includes type parameters for classes, [`data` types](#data), and [all types

Additionally, Coconut supports the alternative bounds syntax of `type NewType[T <: bound] = ...` rather than `type NewType[T: bound] = ...`, to make it more clear that it is an upper bound rather than a type. In `--strict` mode, `<:` is required over `:` for all type parameter bounds. _DEPRECATED:_ `<=` can also be used as an alternative to `<:`.

_Note that, by default, all type declarations are wrapped in strings to enable forward references and improve runtime performance. If you don't want that—e.g. because you want to use type annotations at runtime—simply pass the `--no-wrap` flag._

##### PEP 695 Docs

Defining a generic class prior to this PEP looks something like this.
Expand Down

0 comments on commit 5c4a450

Please sign in to comment.