-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp(node.py): Add pathlib.PosixPath to safe save types
- Loading branch information
Artem Vasenin
committed
Aug 10, 2021
1 parent
d636ee7
commit 96b1c84
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from pathlib import Path | ||
|
||
from ntc import CN | ||
from tests.data.base_cfg import cfg | ||
from tests.data.base_class import BaseClass | ||
|
||
cfg = CN(cfg) | ||
cfg.NEW.int = 1 | ||
cfg.NEW.str = "foo" | ||
cfg.NEW.float = 3.14 | ||
cfg.NEW.path = Path("example") | ||
cfg.NEW.type = BaseClass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters