Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 5, 2024
1 parent 6c17561 commit d619adc
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 9 deletions.
4 changes: 3 additions & 1 deletion deepmd/dpmodel/utils/neighbor_stat.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
from collections.abc import (
Iterator,
)
from typing import (
Optional,
Tuple,
)
from collections.abc import Iterator

import numpy as np

Expand Down
4 changes: 3 additions & 1 deletion deepmd/pt/utils/env_mat_stat.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
from collections.abc import (
Iterator,
)
from typing import (
TYPE_CHECKING,
Dict,
List,
Tuple,
Union,
)
from collections.abc import Iterator

import numpy as np
import torch
Expand Down
4 changes: 3 additions & 1 deletion deepmd/pt/utils/neighbor_stat.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
from collections.abc import (
Iterator,
)
from typing import (
Optional,
Tuple,
)
from collections.abc import Iterator

import numpy as np
import torch
Expand Down
4 changes: 3 additions & 1 deletion deepmd/tf/entrypoints/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@

import logging
import re
from collections.abc import (
Sequence,
)
from typing import (
Dict,
Optional,
)
from collections.abc import Sequence

import numpy as np

Expand Down
4 changes: 3 additions & 1 deletion deepmd/tf/utils/neighbor_stat.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
import logging
from collections.abc import (
Iterator,
)
from typing import (
Optional,
Tuple,
)
from collections.abc import Iterator

import numpy as np

Expand Down
4 changes: 3 additions & 1 deletion deepmd/tf/utils/parallel_op.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
from collections.abc import (
Generator,
)
from typing import (
Any,
Callable,
Dict,
Optional,
Tuple,
)
from collections.abc import Generator

from deepmd.tf.env import (
tf,
Expand Down
4 changes: 3 additions & 1 deletion deepmd/utils/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

import json
import warnings
from collections.abc import (
Sequence,
)
from pathlib import (
Path,
)
Expand All @@ -12,7 +15,6 @@
Optional,
Union,
)
from collections.abc import Sequence

import numpy as np

Expand Down
4 changes: 3 additions & 1 deletion deepmd/utils/env_mat_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
from collections import (
defaultdict,
)
from collections.abc import (
Iterator,
)
from typing import (
Dict,
List,
Optional,
)
from collections.abc import Iterator

import numpy as np

Expand Down
4 changes: 3 additions & 1 deletion deepmd/utils/neighbor_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
ABC,
abstractmethod,
)
from collections.abc import (
Iterator,
)
from typing import (
Tuple,
)
from collections.abc import Iterator

import numpy as np

Expand Down

0 comments on commit d619adc

Please sign in to comment.