Skip to content

Commit 537ef47

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

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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):

testing/test_pluginmanager.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import importlib.metadata
66
from typing import Any
7-
from typing import Dict
87
from typing import List
98

109
import pytest
@@ -130,8 +129,8 @@ class ClassWithProperties:
130129

131130
@property
132131
def some_func(self):
133-
self.property_was_executed = True # pragma: no cover
134-
return None # pragma: no cover
132+
self.property_was_executed = True # pragma: no cover
133+
return None # pragma: no cover
135134

136135
test_plugin = ClassWithProperties()
137136
he_pm.register(test_plugin)

0 commit comments

Comments
 (0)