From 43c35eaf24509dae647de07460e5f02e03544d38 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 29 Aug 2025 23:32:11 +0500 Subject: [PATCH] ifcfm - fix error running without pandas --- src/ifcfm/ifcfm/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ifcfm/ifcfm/__init__.py b/src/ifcfm/ifcfm/__init__.py index 6d08e2f17d..ff36e5702c 100644 --- a/src/ifcfm/ifcfm/__init__.py +++ b/src/ifcfm/ifcfm/__init__.py @@ -16,6 +16,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with IfcFM. If not, see . +from __future__ import annotations import os import re import csv @@ -23,7 +24,7 @@ import importlib import ifcopenshell.util.selector from pathlib import Path from collections import defaultdict -from typing import Literal, Union, Any, Callable +from typing import Literal, Union, Any, Callable, TYPE_CHECKING try: from openpyxl import Workbook @@ -46,6 +47,9 @@ try: except: pass # No Pandas support +if TYPE_CHECKING: + import pandas as pd + __version__ = version = "0.0.0"