mirror of https://github.com/python/cpython
Browse Source
Previously this didn't raise an error. Now it will: ```python from collections.abc import Callable isinstance(int, list | Callable[..., str]) ``` Also added tests in Union since there were previously none for stuff like ``isinstance(list, list | list[int])`` either. Backport to 3.9 not required. Automerge-Triggered-By: GH:gvanrossumpull/24064/head
committed by
GitHub
2 changed files with 11 additions and 1 deletions
Loading…
Reference in new issue