File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 66
77import logging
88import os
9- from pathlib import Path
9+ import pathlib
1010from typing import Any , Type , overload
1111
1212import numpy
@@ -78,7 +78,7 @@ def __init__(
7878 mode : str ,
7979 * ,
8080 dd_version : str | None = None ,
81- xml_path : str | Path | None = None ,
81+ xml_path : str | pathlib . Path | None = None ,
8282 ) -> None : ...
8383
8484 @overload
@@ -93,14 +93,14 @@ def __init__(
9393 * ,
9494 shot : int | None = None ,
9595 dd_version : str | None = None ,
96- xml_path : str | Path | None = None ,
96+ xml_path : str | pathlib . Path | None = None ,
9797 ) -> None : ...
9898
9999 def __init__ (
100100 self ,
101101 * args ,
102102 dd_version : str | None = None ,
103- xml_path : str | Path | None = None ,
103+ xml_path : str | pathlib . Path | None = None ,
104104 ** kwargs ,
105105 ):
106106 """Open or create a Data Entry based on the provided URI and mode, or prepare a
Original file line number Diff line number Diff line change 55from __future__ import annotations
66
77import logging
8+ import pathlib
89from collections .abc import Iterable , Iterator
910from functools import partial
10- from pathlib import Path
1111from typing import Any
1212
1313from imas import dd_zip
@@ -30,7 +30,7 @@ class IDSFactory:
3030 """
3131
3232 def __init__ (
33- self , version : str | None = None , xml_path : str | Path | None = None
33+ self , version : str | None = None , xml_path : str | pathlib . Path | None = None
3434 ) -> None :
3535 """Create a new IDS Factory
3636
You can’t perform that action at this time.
0 commit comments