isproperty

Stoner.tools.isproperty(obj: Any, name: str) bool[source]

Check whether an attribute of an object or class is a property.

Parameters:
  • obj (instance or class) – Thing that has the attribute to check

  • name (str) – Name of the attribute that might be a property

Returns:

(bool) – Whether the name is a property or not.