You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Add test case] Bug in return type of deque.copy() in generic type #12641
changed the title [-]Bug in return type of `deque.copy()` if type variables are involved[/-][+]Bug in return type of `deque.copy()` if generic type[/+]on Apr 21, 2022
changed the title [-]Bug in return type of `deque.copy()` if generic type[/-][+]Bug in return type of `deque.copy()` in generic type[/+]on Apr 21, 2022
deque.copy in typeshed is just def copy(self: Self) -> Self:, so I do think this is a bug in mypy. Does it reproduce on current master with #12590 applied?
deque.copy in typeshed is just def copy(self: Self) -> Self:, so I do think this is a bug in mypy. Does it reproduce on current master with #12590 applied?
I can reproduce with 0.942, but not with mypy master. The "first good commit" is indeed 20b0b9b -- so yep, #12590 fixed this.
changed the title [-]Bug in return type of `deque.copy()` in generic type[/-][+][Add test case] Bug in return type of `deque.copy()` in generic type[/+]on Apr 21, 2022
Activity
[-]Bug in return type of `deque.copy()` if type variables are involved[/-][+]Bug in return type of `deque.copy()` if generic type[/+][-]Bug in return type of `deque.copy()` if generic type[/-][+]Bug in return type of `deque.copy()` in generic type[/+]JelleZijlstra commentedon Apr 21, 2022
deque.copyin typeshed is justdef copy(self: Self) -> Self:, so I do think this is a bug in mypy. Does it reproduce on current master with #12590 applied?AlexWaygood commentedon Apr 21, 2022
I can reproduce with 0.942, but not with mypy master. The "first good commit" is indeed 20b0b9b -- so yep, #12590 fixed this.
JelleZijlstra commentedon Apr 21, 2022
Great, let's add a test case for this one too.
[-]Bug in return type of `deque.copy()` in generic type[/-][+][Add test case] Bug in return type of `deque.copy()` in generic type[/+]