Skip to content

Commit cbca8df

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pluggy/_manager.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ def _warn_for_function(warning: Warning, function: Callable[..., object]) -> Non
4545
filename=func.__code__.co_filename,
4646
)
4747

48+
4849
def _attr_is_property(obj: Any, name: str) -> bool:
4950
"""Check if a given attr is a @property on a module, class, or object"""
5051
if inspect.ismodule(obj):
51-
return False # modules can never have @property methods
52+
return False # modules can never have @property methods
5253

5354
base_class = obj if inspect.isclass(obj) else type(obj)
5455
if isinstance(getattr(base_class, name, None), property):

0 commit comments

Comments
 (0)