Skip to content

Commit

Permalink
make PDeque generic covariant
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasK9999 committed Oct 16, 2023
1 parent 225f8ae commit 3ee2f01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyrsistent/_pdeque.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
from typing import TypeVar, Generic
from pyrsistent._plist import plist

T = TypeVar("T")
T_co = TypeVar("T_co", covariant=True)


class PDeque(Generic[T]):
class PDeque(Generic[T_co]):
"""
Persistent double ended queue (deque). Allows quick appends and pops in both ends. Implemented
using two persistent lists.
Expand Down

0 comments on commit 3ee2f01

Please sign in to comment.