mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
use common rst syntax in doc-strings
This commit is contained in:
@@ -466,8 +466,7 @@ class entity_instance:
|
||||
def is_entity(self) -> bool:
|
||||
"""Tests whether the instance is an entity type as opposed to a simple data type.
|
||||
|
||||
Returns:
|
||||
bool: True if the instance is an entity
|
||||
:return: True if the instance is an entity
|
||||
"""
|
||||
schema_name = self.wrapped_data.is_a(True).split(".")[0]
|
||||
decl = ifcopenshell_wrapper.schema_by_name(schema_name).declaration_by_name(self.is_a())
|
||||
@@ -499,13 +498,11 @@ class entity_instance:
|
||||
return op(a, b)
|
||||
TypeError: '<' not supported between instances of 'int' and 'str'
|
||||
|
||||
Args:
|
||||
other (_type_): Right hand side (or lhs when reverse = True)
|
||||
op (_type_): The comparison operator (likely from the operator module)
|
||||
reverse (bool, optional): When true swaps lhs and rhs. Defaults to False.
|
||||
:param other: Right hand side (or lhs when reverse = True)
|
||||
:param op: The comparison operator (likely from the operator module)
|
||||
:param reverse: When true swaps lhs and rhs. Defaults to False.
|
||||
|
||||
Returns:
|
||||
bool: The comparison predicate applied to self and other
|
||||
:return: bool: The comparison predicate applied to self and other
|
||||
"""
|
||||
|
||||
if isinstance(other, entity_instance):
|
||||
|
||||
Reference in New Issue
Block a user