Преглед на файлове

add static and class methods to the documentation

Falko Schindler преди 1 година
родител
ревизия
4680c06cf5
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6 1
      website/documentation/reference.py

+ 6 - 1
website/documentation/reference.py

@@ -45,7 +45,12 @@ def _is_method_or_property(cls: type, attribute_name: str) -> bool:
     return (
         inspect.isfunction(attribute) or
         inspect.ismethod(attribute) or
-        isinstance(attribute, (property, binding.BindableProperty))
+        isinstance(attribute, (
+            staticmethod,
+            classmethod,
+            property,
+            binding.BindableProperty,
+        ))
     )