Skip to content

Commit

Permalink
Python <3.10 typing compat: Callable
Browse files Browse the repository at this point in the history
`collections.abc.Callable` subscripting was added in Python 3.10,
use `typing.Callable` instead.
  • Loading branch information
lojack5 committed Oct 18, 2023
1 parent b23c5a8 commit bbd32c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions etgtools/pi_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@

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
)
"""

Expand Down

0 comments on commit bbd32c4

Please sign in to comment.