ifc2ca, bcf, opencdeserver - add Python 3.9 support

Was breaking due to `|` operator used in annotations instead of `Union`
This commit is contained in:
Andrej
2025-05-28 14:06:07 +05:00
parent a8634a561a
commit 3b50993b21
10 changed files with 10 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@ Copyright (c) 2017-2020 Anthon van der Neut, Ruamel bvba
original idea from https://stackoverflow.com/a/19722365/1307905
"""
from __future__ import annotations
import zipfile
from io import BytesIO
from os import PathLike
+1
View File
@@ -1,5 +1,6 @@
"""BCF XML V2 handler."""
from __future__ import annotations
import uuid
import warnings
import zipfile
+1
View File
@@ -1,5 +1,6 @@
"""BCF XML V2 Topic handler."""
from __future__ import annotations
import datetime
import tempfile
import uuid
+1
View File
@@ -1,5 +1,6 @@
"""BCF XML V3 handlers."""
from __future__ import annotations
import uuid
import warnings
import zipfile
+1
View File
@@ -1,5 +1,6 @@
"""BCF XML V3 Topic handler."""
from __future__ import annotations
import datetime
import uuid
import zipfile
+1
View File
@@ -16,6 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Ifc2CA. If not, see <http://www.gnu.org/licenses/>.
from __future__ import annotations
import json
import os
import subprocess
@@ -1,3 +1,4 @@
from __future__ import annotations
from pydantic import BaseModel
@@ -1,3 +1,4 @@
from __future__ import annotations
from pydantic import BaseModel
from typing import List
@@ -1,3 +1,4 @@
from __future__ import annotations
from pydantic import BaseModel
@@ -1,3 +1,4 @@
from __future__ import annotations
from fastapi import Depends, HTTPException, status, Security
from fastapi.security import OAuth2AuthorizationCodeBearer, SecurityScopes