mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix Ruff UP018 (native-literals)
https://docs.astral.sh/ruff/rules/native-literals/
This commit is contained in:
@@ -334,7 +334,7 @@ def _get_element_value(element: ifcopenshell.entity_instance, keys: list[str]) -
|
||||
elif isinstance(value, (list, tuple)):
|
||||
value = len(value)
|
||||
else:
|
||||
value = int(1)
|
||||
value = 1
|
||||
elif key == "class":
|
||||
value = value.is_a()
|
||||
elif key == "predefined_type":
|
||||
|
||||
@@ -577,7 +577,7 @@ class BCFDB(MyDB):
|
||||
project_id=str(project_id),
|
||||
topic_id=str(topic_id),
|
||||
viewpoint_id=str(comment.viewpoint_guid),
|
||||
reply_to_comment_id=str("comment.reply_to_comment_guid"),
|
||||
reply_to_comment_id="comment.reply_to_comment_guid",
|
||||
comment_id=str(this_comment_guid),
|
||||
creation_date=self.timestamp(),
|
||||
comment=comment.comment,
|
||||
|
||||
Reference in New Issue
Block a user