Skip to content

Commit

Permalink
remove typing_extensions Annotated import
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tz committed Oct 22, 2024
1 parent 12afc3a commit a61b04b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions capa/features/extractors/cape/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
3 changes: 1 addition & 2 deletions capa/features/extractors/vmray/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

"""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit a61b04b

Please sign in to comment.