mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 11:00: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 = """\
|
typing_imports = """\
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
from collections.abc import Callable
|
|
||||||
from enum import IntEnum, IntFlag, auto
|
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