Construct a PurePath from one or several strings and or existing PurePath objects. The strings and path objects are combined so as to yield a canonicalized path, which is incorporated into the new PurePath object.
(cls, *args)
| 800 | ) |
| 801 | |
| 802 | def __new__(cls, *args): |
| 803 | """Construct a PurePath from one or several strings and or existing |
| 804 | PurePath objects. The strings and path objects are combined so as |
| 805 | to yield a canonicalized path, which is incorporated into the |
| 806 | new PurePath object. |
| 807 | """ |
| 808 | if cls is PurePath: |
| 809 | cls = PureWindowsPath if os.name == 'nt' else PurePosixPath |
| 810 | return cls._from_parts(args) |
| 811 | |
| 812 | def __reduce__(self): |
| 813 | # Using the parts tuple helps share interned path parts |
nothing calls this directly
no test coverage detected