Skip to content

Commit a397f63

Browse files
chore: solving various warnings (#1368)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
1 parent aa54721 commit a397f63

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

doc/changelog.d/1368.maintenance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
solving various warnings

src/ansys/geometry/core/designer/body.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
"""Provides for managing a body."""
2323

2424
from abc import ABC, abstractmethod
25+
from collections.abc import Iterable
2526
from enum import Enum, unique
2627
from functools import wraps
27-
from typing import TYPE_CHECKING, Iterable, Union
28+
from typing import TYPE_CHECKING, Union
2829

2930
from beartype import beartype as check_input_types
3031
from pint import Quantity

src/ansys/geometry/core/materials/material.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# SOFTWARE.
2222
"""Provides the data structure for material and material properties."""
2323

24-
from typing import Sequence
24+
from collections.abc import Sequence
2525

2626
from beartype import beartype as check_input_types
2727
from pint import Quantity

src/ansys/geometry/core/misc/checks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
# SOFTWARE.
2222
"""Provides functions for performing common checks."""
2323

24-
from typing import TYPE_CHECKING, Iterable
24+
from collections.abc import Iterable
25+
from typing import TYPE_CHECKING
2526
import warnings
2627

2728
import numpy as np

src/ansys/geometry/core/sketch/trapezoid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(
8383
# TODO: Remove this warning in the next major release (v0.8.0)
8484
# https://github.com/ansys/pyansys-geometry/issues/1359
8585
LOG.warning(
86-
"The signature of the Trapezoid class has changed starting on"
86+
"The signature of the Trapezoid class has changed starting on "
8787
"version 0.7.X. Please refer to the documentation for more information."
8888
)
8989

src/ansys/geometry/core/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# SOFTWARE.
2222
"""Provides typing of values for PyAnsys Geometry."""
2323

24-
from typing import Sequence
24+
from collections.abc import Sequence
2525

2626
import numpy as np
2727

0 commit comments

Comments
 (0)