File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: LGPL-3.0-or-later
2+ from collections .abc import (
3+ Iterator ,
4+ )
25from typing import (
36 Optional ,
47 Tuple ,
58)
6- from collections .abc import Iterator
79
810import numpy as np
911
Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: LGPL-3.0-or-later
2+ from collections .abc import (
3+ Iterator ,
4+ )
25from typing import (
36 TYPE_CHECKING ,
47 Dict ,
58 List ,
69 Tuple ,
710 Union ,
811)
9- from collections .abc import Iterator
1012
1113import numpy as np
1214import torch
Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: LGPL-3.0-or-later
2+ from collections .abc import (
3+ Iterator ,
4+ )
25from typing import (
36 Optional ,
47 Tuple ,
58)
6- from collections .abc import Iterator
79
810import numpy as np
911import torch
Original file line number Diff line number Diff line change 33
44import logging
55import re
6+ from collections .abc import (
7+ Sequence ,
8+ )
69from typing import (
710 Dict ,
811 Optional ,
912)
10- from collections .abc import Sequence
1113
1214import numpy as np
1315
Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: LGPL-3.0-or-later
22import logging
3+ from collections .abc import (
4+ Iterator ,
5+ )
36from typing import (
47 Optional ,
58 Tuple ,
69)
7- from collections .abc import Iterator
810
911import numpy as np
1012
Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: LGPL-3.0-or-later
2+ from collections .abc import (
3+ Generator ,
4+ )
25from typing import (
36 Any ,
47 Callable ,
58 Dict ,
69 Optional ,
710 Tuple ,
811)
9- from collections .abc import Generator
1012
1113from deepmd .tf .env import (
1214 tf ,
Original file line number Diff line number Diff line change 33
44import json
55import warnings
6+ from collections .abc import (
7+ Sequence ,
8+ )
69from pathlib import (
710 Path ,
811)
1215 Optional ,
1316 Union ,
1417)
15- from collections .abc import Sequence
1618
1719import numpy as np
1820
Original file line number Diff line number Diff line change 77from collections import (
88 defaultdict ,
99)
10+ from collections .abc import (
11+ Iterator ,
12+ )
1013from typing import (
1114 Dict ,
1215 List ,
1316 Optional ,
1417)
15- from collections .abc import Iterator
1618
1719import numpy as np
1820
Original file line number Diff line number Diff line change 55 ABC ,
66 abstractmethod ,
77)
8+ from collections .abc import (
9+ Iterator ,
10+ )
811from typing import (
912 Tuple ,
1013)
11- from collections .abc import Iterator
1214
1315import numpy as np
1416
You can’t perform that action at this time.
0 commit comments