mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +00:00
edit_attributes - fix Python 3.9 support (39fd9ce)
This commit is contained in:
@@ -16,10 +16,15 @@
|
|||||||
# 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 IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
|
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
import sys
|
||||||
import ifcopenshell.api.owner
|
import ifcopenshell.api.owner
|
||||||
import ifcopenshell.util.element
|
import ifcopenshell.util.element
|
||||||
from typing import Any, Union
|
from typing import Any, Union
|
||||||
from types import EllipsisType
|
|
||||||
|
if sys.version_info >= (3, 10):
|
||||||
|
from types import EllipsisType
|
||||||
|
else:
|
||||||
|
EllipsisType = type(...)
|
||||||
|
|
||||||
|
|
||||||
def edit_attributes(file: ifcopenshell.file, product: ifcopenshell.entity_instance, attributes: dict[str, Any]) -> None:
|
def edit_attributes(file: ifcopenshell.file, product: ifcopenshell.entity_instance, attributes: dict[str, Any]) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user