diff --git a/python/online/fxreader/pr34/commands_typed/cli.py b/python/online/fxreader/pr34/commands_typed/cli.py index c3119a9..0e8c342 100644 --- a/python/online/fxreader/pr34/commands_typed/cli.py +++ b/python/online/fxreader/pr34/commands_typed/cli.py @@ -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