Skip to content

Commit 5660ef3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4fbde9c commit 5660ef3

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/attr/_compat.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class _AnnotationExtractor:
4545
__slots__ = ["sig"]
4646

4747
def __init__(self, callable):
48-
import inspect # noqa: PLC0415
48+
import inspect
4949

5050
try:
5151
self.sig = inspect.signature(callable)
@@ -56,7 +56,7 @@ def get_first_param_type(self):
5656
"""
5757
Return the type annotation of the first argument if it's not empty.
5858
"""
59-
import inspect # noqa: PLC0415
59+
import inspect
6060

6161
if not self.sig:
6262
return None
@@ -71,7 +71,7 @@ def get_return_type(self):
7171
"""
7272
Return the return type if it's not empty.
7373
"""
74-
import inspect # noqa: PLC0415
74+
import inspect
7575

7676
if (
7777
self.sig

src/attr/_make.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ def __init__(
704704
if self._has_pre_init:
705705
# Check if the pre init method has more arguments than just `self`
706706
# We want to pass arguments if pre init expects arguments
707-
import inspect # noqa: PLC0415
707+
import inspect
708708

709709
pre_init_func = cls.__attrs_pre_init__
710710
pre_init_signature = inspect.signature(pre_init_func)
@@ -921,7 +921,7 @@ def _create_slots_class(self):
921921
# To know to update them.
922922
additional_closure_functions_to_update = []
923923
if cached_properties:
924-
import inspect # noqa: PLC0415
924+
import inspect
925925

926926
class_annotations = _get_annotations(self._cls)
927927
for name, func in cached_properties.items():

0 commit comments

Comments
 (0)