remove typing_extensions Annotated import

This commit is contained in:
mr-tz
2024-10-22 08:57:51 +00:00
parent 20ae098cda
commit 7cc3ddd4ea
3 changed files with 3 additions and 5 deletions

View File

@@ -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

View File

@@ -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
"""

View File

@@ -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]