mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 18:43:26 +00:00
Drop Python 3.9 support as it reached EOL
This commit is contained in:
@@ -20,8 +20,8 @@ import ifcopenshell
|
||||
import ifcopenshell.guid
|
||||
import ifcopenshell.util.element
|
||||
import ifcopenshell.util.representation
|
||||
from typing import Any, Callable, Optional, Union, Literal, overload
|
||||
from collections.abc import Generator, Sequence
|
||||
from typing import Any, Optional, Union, Literal, overload
|
||||
from collections.abc import Callable, Generator, Sequence
|
||||
from collections import namedtuple
|
||||
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ try:
|
||||
except ImportError:
|
||||
LARK_AVAILABLE = False
|
||||
|
||||
from typing import Callable, Union
|
||||
from typing import Union
|
||||
import re
|
||||
|
||||
if LARK_AVAILABLE:
|
||||
@@ -51,9 +51,9 @@ if LARK_AVAILABLE:
|
||||
|
||||
value: /[A-Za-z0-9 _\.-]+/
|
||||
|
||||
other_keyword: /[^\[\]]+/
|
||||
|
||||
dynamic_option_word: /[^\[\]]+/
|
||||
other_keyword: /[^\[\]]+/
|
||||
|
||||
dynamic_option_word: /[^\[\]]+/
|
||||
|
||||
%import common.WS
|
||||
%ignore WS
|
||||
|
||||
@@ -37,11 +37,7 @@ import ifcopenshell.util.unit
|
||||
from decimal import Decimal
|
||||
from typing import Optional, Any, Union
|
||||
from collections.abc import Iterable
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
from types import EllipsisType
|
||||
else:
|
||||
EllipsisType = type(...)
|
||||
from types import EllipsisType
|
||||
|
||||
|
||||
filter_elements_grammar = lark.Lark(
|
||||
|
||||
Reference in New Issue
Block a user