mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Handle unions with GenericAlias subclasses without TypeError (#6540)
--------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: youknowone <69878+youknowone@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Jeong YunWon <jeong@youknowone.org>
This commit is contained in:
5 files changed
+27
-10
No files matched your search
@@ -8,3 +8,7 @@ def abort_signal_handler(
|
||||
fn: Callable[[], Awaitable[T]], on_abort: Callable[[], None] | None = None
|
||||
) -> T:
|
||||
pass
|
||||
|
||||
|
||||
# Ensure PEP 604 unions work with typing.Callable aliases.
|
||||
TracebackFilter = bool | Callable[[int], int]
|
||||
Reference in new issue
Block a user