[+] improve typing

This commit is contained in:
Siarhei Siniak 2025-05-19 13:23:02 +03:00
parent cc506baa9e
commit 21326dd222

@ -18,10 +18,13 @@ from typing import (
Literal,
Any,
MutableMapping,
Mapping,
IO,
)
from typing_extensions import (
cast,
Callable,
)
logger = logging.getLogger(__name__)
@ -748,10 +751,14 @@ class CLI(abc.ABC):
del p
del pyproject_tool
tomlkit.dump(
cast(
Callable[[Mapping[Any, Any], IO[str] | IO[bytes]], None],
getattr(tomlkit, 'dump'),
)(
pyproject2,
f
)
del pyproject2
del module