From 73817acdff2962bf35695fd6b8593c7206b79ada Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 1 Feb 2024 16:30:50 +0500 Subject: [PATCH] add a note on get_info_2() #4270 --- .../ifcopenshell/entity_instance.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/entity_instance.py b/src/ifcopenshell-python/ifcopenshell/entity_instance.py index df7febf5d2..02a5b748b7 100644 --- a/src/ifcopenshell-python/ifcopenshell/entity_instance.py +++ b/src/ifcopenshell-python/ifcopenshell/entity_instance.py @@ -505,6 +505,16 @@ class entity_instance(object): __dict__ = property(get_info) def get_info_2(self, include_identifier=True, recursive=False, return_type=dict, ignore=()): + """More perfomant version of `.get_info()` but with limited arguments values.\n + Method has exactly the same signature as `.get_info()` but it doesn't support getting information non-recursively. + + Currently supported arguments values: + * include_identifier: `True` + * recursive: `True` (will fail with default `False` value from `.get_info()`) + * return_type: `dict` + * ignore: `()` (empty tuple) + """ + assert include_identifier assert recursive assert return_type is dict