Skip to content

Commit

Permalink
fix: doctest
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman committed Apr 27, 2024
1 parent 763110d commit 5b24dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plum/parametric.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,8 @@ def type_nonparametric(q: T) -> Type[T]:
>>> pobj = PObj(1)
>>> type(pobj).mro()
[<class 'plum.parametric.Obj'>, <class 'plum.parametric.Obj'>,
<class 'object'>]
[<class 'plum.parametric.Obj[int]'>, <class 'plum.parametric.Obj'>,
<class 'plum.parametric.Obj'>, <class 'object'>]
Note that the class `Obj` appears twice in the MRO. The first one is the
parametric class, and the second one is the non-parametric class. The
Expand Down

0 comments on commit 5b24dda

Please sign in to comment.