Skip to content

Commit 59f86e2

Browse files
author
Han Wang
committed
Merge remote-tracking branch 'origin/fix-py-to-310' into fix-py-to-310
2 parents 28b7801 + 13ac005 commit 59f86e2

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

dpdata/driver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
from __future__ import annotations
44

55
from abc import ABC, abstractmethod
6-
from typing import TYPE_CHECKING, Callable
6+
from collections.abc import Callable
7+
from typing import TYPE_CHECKING
78

89
from .plugin import Plugin
910

dpdata/plugins/ase.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from __future__ import annotations
22

33
import os
4-
from typing import TYPE_CHECKING, Generator
4+
from collections.abc import Generator
5+
from typing import TYPE_CHECKING
56

67
import numpy as np
78

dpdata/system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
import numbers
77
import os
88
import warnings
9+
from collections.abc import Iterable
910
from copy import deepcopy
1011
from typing import (
1112
TYPE_CHECKING,
1213
Any,
13-
Iterable,
1414
Literal,
1515
overload,
1616
)

dpdata/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
import io
44
import os
5+
from collections.abc import Generator
56
from contextlib import contextmanager
6-
from typing import TYPE_CHECKING, Generator, Literal, overload
7+
from typing import TYPE_CHECKING, Literal, overload
78

89
import numpy as np
910

0 commit comments

Comments
 (0)