From 8c4d170cb908c20341ffd703ed09b91123c9e207 Mon Sep 17 00:00:00 2001 From: Jan Gosmann Date: Tue, 1 Aug 2023 20:26:32 +0200 Subject: [PATCH] Remove typing-extensions dependency It is no longer required because the minimum required Python version is 3.8 which does provide the necessary types in `typing`. --- dmarc_metrics_exporter/imap_client.py | 3 +-- poetry.lock | 2 +- pyproject.toml | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dmarc_metrics_exporter/imap_client.py b/dmarc_metrics_exporter/imap_client.py index d15f249..8a88180 100644 --- a/dmarc_metrics_exporter/imap_client.py +++ b/dmarc_metrics_exporter/imap_client.py @@ -16,10 +16,9 @@ ) from dataclasses import dataclass from enum import Enum -from typing import Callable, Coroutine, Dict, FrozenSet, Optional, Union +from typing import Callable, Coroutine, Dict, FrozenSet, Literal, Optional, Union from bite import parse_incremental -from typing_extensions import Literal from .imap_parser import response as response_grammar diff --git a/poetry.lock b/poetry.lock index 2bdfbd7..20a365b 100755 --- a/poetry.lock +++ b/poetry.lock @@ -1615,4 +1615,4 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "0d7b8bd5d8cf9f5baab64588ef6e68d849cbe16aef9a6913ff7dc58e2ba67278" +content-hash = "d195304c72f8c004e146562685028572e43fb758873b2e629b252391c3bf6eab" diff --git a/pyproject.toml b/pyproject.toml index c8ddcc7..7e85a7d 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,6 @@ bite-parser = "^0.2.3" dataclasses-serialization = "^1.3.1" prometheus_client = "^0.17.1" python = "^3.8" -typing-extensions = "^4.0.1" uvicorn = {extras = ["standard"], version = "^0.23.2"} xsdata = ">=21.9"