mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
ifc2ca, bcf, opencdeserver - add Python 3.9 support
Was breaking due to `|` operator used in annotations instead of `Union`
This commit is contained in:
@@ -6,6 +6,7 @@ Copyright (c) 2017-2020 Anthon van der Neut, Ruamel bvba
|
|||||||
original idea from https://stackoverflow.com/a/19722365/1307905
|
original idea from https://stackoverflow.com/a/19722365/1307905
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
import zipfile
|
import zipfile
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from os import PathLike
|
from os import PathLike
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
"""BCF XML V2 handler."""
|
"""BCF XML V2 handler."""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
import uuid
|
import uuid
|
||||||
import warnings
|
import warnings
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
"""BCF XML V2 Topic handler."""
|
"""BCF XML V2 Topic handler."""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
import datetime
|
import datetime
|
||||||
import tempfile
|
import tempfile
|
||||||
import uuid
|
import uuid
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
"""BCF XML V3 handlers."""
|
"""BCF XML V3 handlers."""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
import uuid
|
import uuid
|
||||||
import warnings
|
import warnings
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
"""BCF XML V3 Topic handler."""
|
"""BCF XML V3 Topic handler."""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
import datetime
|
import datetime
|
||||||
import uuid
|
import uuid
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with Ifc2CA. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ifc2CA. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
from __future__ import annotations
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
from __future__ import annotations
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
from __future__ import annotations
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
from __future__ import annotations
|
||||||
from fastapi import Depends, HTTPException, status, Security
|
from fastapi import Depends, HTTPException, status, Security
|
||||||
from fastapi.security import OAuth2AuthorizationCodeBearer, SecurityScopes
|
from fastapi.security import OAuth2AuthorizationCodeBearer, SecurityScopes
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user