Skip to content

Commit

Permalink
Typing Spec: Don't prescribe using joins (#1538)
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra authored Dec 11, 2023
1 parent 9f35263 commit 007e5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/spec/generics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ be a subtype of the boundary type. Example::

longer([1], [1, 2]) # ok, return type list[int]
longer({1}, {1, 2}) # ok, return type set[int]
longer([1], {1, 2}) # ok, return type Collection[int]
longer([1], {1, 2}) # ok, return type a supertype of list[int] and set[int]

An upper bound cannot be combined with type constraints (as used in
``AnyStr``, see the example earlier); type constraints cause the
Expand Down

0 comments on commit 007e5e6

Please sign in to comment.