Skip to content

Commit c0789a6

Browse files
piratebluetech
andauthored
swap _attr_is_property arg Any type to object type
Co-authored-by: Ran Benita <ran@unusedvar.com>
1 parent 2536c62 commit c0789a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pluggy/_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _warn_for_function(warning: Warning, function: Callable[..., object]) -> Non
4646
)
4747

4848

49-
def _attr_is_property(obj: Any, name: str) -> bool:
49+
def _attr_is_property(obj: object, name: str) -> bool:
5050
"""Check if a given attr is a @property on a module, class, or object"""
5151
if inspect.ismodule(obj):
5252
return False # modules can never have @property methods

0 commit comments

Comments
 (0)