mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
:Revert "Temporary Python 3.9 compatibility"
This reverts commit 0aae57620f.
This commit is contained in:
@@ -28,9 +28,7 @@ import weakref
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any, Optional, TYPE_CHECKING, Union, overload, Literal, TypedDict
|
from typing import Any, Optional, TYPE_CHECKING, Union, overload, Literal, TypedDict
|
||||||
from collections.abc import Callable, Generator
|
from collections.abc import Callable, Generator
|
||||||
|
from typing_extensions import assert_never
|
||||||
# py39 compat: re-enable when support is dropped
|
|
||||||
# from typing_extensions import assert_never
|
|
||||||
|
|
||||||
from . import ifcopenshell_wrapper
|
from . import ifcopenshell_wrapper
|
||||||
from .entity_instance import entity_instance
|
from .entity_instance import entity_instance
|
||||||
@@ -215,9 +213,7 @@ class Transaction:
|
|||||||
for index, value in data:
|
for index, value in data:
|
||||||
inverse[index] = self.unserialise_value(inverse, value)
|
inverse[index] = self.unserialise_value(inverse, value)
|
||||||
else:
|
else:
|
||||||
# py39 compat: re-enable when support is dropped
|
assert_never(operation["action"])
|
||||||
# assert_never(operation["action"])
|
|
||||||
pass
|
|
||||||
|
|
||||||
def commit(self) -> None:
|
def commit(self) -> None:
|
||||||
for operation in self.operations:
|
for operation in self.operations:
|
||||||
@@ -238,9 +234,7 @@ class Transaction:
|
|||||||
elif operation["action"] == "batch_delete":
|
elif operation["action"] == "batch_delete":
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
# py39 compat: re-enable when support is dropped
|
assert_never(operation["action"])
|
||||||
# assert_never(operation["action"])
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
file_dict: dict[int, tuple[weakref.ReferenceType[file], int]] = {}
|
file_dict: dict[int, tuple[weakref.ReferenceType[file], int]] = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user