mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Python <3.10 typing compat: Callable
`collections.abc.Callable` subscripting was added in Python 3.10, use `typing.Callable` instead.
This commit is contained in:
@@ -80,9 +80,10 @@ header_pyi = """\
|
||||
|
||||
typing_imports = """\
|
||||
from __future__ import annotations
|
||||
from collections.abc import Callable
|
||||
from enum import IntEnum, IntFlag, auto
|
||||
from typing import Any, overload, TypeAlias, TypeVar, ParamSpec, Generic, Union, Optional, List, Tuple
|
||||
from typing import (Any, overload, TypeAlias, TypeVar, ParamSpec, Generic,
|
||||
Union, Optional, List, Tuple, Callable
|
||||
)
|
||||
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user