diff --git a/capa/features/extractors/cape/models.py b/capa/features/extractors/cape/models.py index 7aa2c651f..20bedec24 100644 --- a/capa/features/extractors/cape/models.py +++ b/capa/features/extractors/cape/models.py @@ -6,10 +6,9 @@ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and limitations under the License. import binascii -from typing import Any, Union, Literal, Optional, TypeAlias +from typing import Any, Union, Literal, Optional, Annotated, TypeAlias from pydantic import Field, BaseModel, ConfigDict -from typing_extensions import Annotated from pydantic.functional_validators import BeforeValidator diff --git a/capa/features/extractors/vmray/models.py b/capa/features/extractors/vmray/models.py index ef0513fb2..c2d6551aa 100644 --- a/capa/features/extractors/vmray/models.py +++ b/capa/features/extractors/vmray/models.py @@ -6,11 +6,10 @@ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and limitations under the License. -from typing import Union, Optional +from typing import Union, Optional, Annotated import xmltodict from pydantic import Field, BaseModel -from typing_extensions import Annotated from pydantic.functional_validators import BeforeValidator """ diff --git a/pyproject.toml b/pyproject.toml index 1cbc9b0e6..f8e9c3bc6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -233,7 +233,7 @@ DEP002 = [ # dependencies imported but missing from definitions DEP003 = [ - "typing_extensions" # TODO(s-ff): remove when Python 3.9 is deprecated, see #1699 + "typing_extensions" # TODO(s-ff): remove when Python 3.10 is deprecated, see #1699 ] [tool.deptry.package_module_name_map]