Skip to content

Commit 536c853

Browse files
authored
Moved location of Path class from jsonargparse to jsonargparse.typing (#792)
1 parent e1828e2 commit 536c853

File tree

12 files changed

+830
-830
lines changed

12 files changed

+830
-830
lines changed

CHANGELOG.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ Changed
3030
- ``parse_optionals_as_positionals`` and ``applied_instantiation_links`` no
3131
longer marked as experimental (`#788
3232
<https://github.com/omni-us/jsonargparse/pull/788>`__).
33+
- Moved location of ``Path`` class from ``jsonargparse`` to
34+
``jsonargparse.typing`` (`#792
35+
<https://github.com/omni-us/jsonargparse/pull/792>`__).
3336

3437

3538
v4.42.0 (2025-10-14)

jsonargparse/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from ._loaders_dumpers import * # noqa: F403
2121
from ._namespace import * # noqa: F403
2222
from ._optionals import * # noqa: F403
23+
from ._paths import Path # noqa: F401
2324
from ._signatures import * # noqa: F403
2425
from ._typehints import * # noqa: F403
2526
from ._util import * # noqa: F403

jsonargparse/_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
from ._loaders_dumpers import get_loader_exceptions, load_value
1414
from ._namespace import Namespace, NSKeyError, split_key, split_key_root
1515
from ._optionals import _get_config_read_mode, ruamel_support
16+
from ._paths import change_to_path_dir
1617
from ._type_checking import ActionsContainer, ArgumentParser
1718
from ._util import (
1819
Path,
1920
argument_error,
20-
change_to_path_dir,
2121
default_config_option_help,
2222
get_import_path,
2323
import_object,

jsonargparse/_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@
8585
pyyaml_available,
8686
)
8787
from ._parameter_resolvers import UnknownDefault
88+
from ._paths import change_to_path_dir
8889
from ._signatures import SignatureArguments
8990
from ._typehints import ActionTypeHint, is_subclass_spec
9091
from ._util import (
9192
ClassType,
9293
Path,
9394
argument_error,
94-
change_to_path_dir,
9595
get_argument_group_class,
9696
get_private_kwargs,
9797
identity,

0 commit comments

Comments
 (0)