remove problematic annotated-types

This commit is contained in:
Jeffrey C. Ollie 2022-07-07 17:20:51 -05:00
parent 5d2db71b7e
commit 3e16cede84
3 changed files with 2 additions and 19 deletions

View file

@ -17,14 +17,11 @@
import asyncio import asyncio
import itertools import itertools
import logging import logging
from typing import Annotated
from typing import Awaitable from typing import Awaitable
from typing import Callable from typing import Callable
from typing import Iterable from typing import Iterable
from typing import TypeVar from typing import TypeVar
from annotated_types import Ge
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
T = TypeVar("T") T = TypeVar("T")
@ -54,7 +51,7 @@ def iterlast(iterable: Iterable[T]) -> Iterable[tuple[bool, T]]:
async def timed_caller( async def timed_caller(
timings: Iterable[Annotated[int, Ge(0)]], timings: Iterable[int],
call: Callable[[None], Awaitable[None]], call: Callable[[None], Awaitable[None]],
last: Callable[[None], Awaitable[None]], last: Callable[[None], Awaitable[None]],
) -> None: ) -> None:

14
poetry.lock generated
View file

@ -37,14 +37,6 @@ python-versions = ">=3.6"
[package.dependencies] [package.dependencies]
frozenlist = ">=1.1.0" frozenlist = ">=1.1.0"
[[package]]
name = "annotated-types"
version = "0.2.0"
description = "Reusable constraint types to use with typing.Annotated"
category = "main"
optional = false
python-versions = ">=3.7.0,<4.0.0"
[[package]] [[package]]
name = "arrow" name = "arrow"
version = "1.2.2" version = "1.2.2"
@ -485,7 +477,7 @@ multidict = ">=4.0"
[metadata] [metadata]
lock-version = "1.1" lock-version = "1.1"
python-versions = "^3.10" python-versions = "^3.10"
content-hash = "b30f4fc0f062d4579ac56503060d0dd3f38c0995c2c16bc74e78ed92f83febf1" content-hash = "b673be650b9402fba6cde534e254b7e5115f44375cbb3f62e0a389f1f3decdee"
[metadata.files] [metadata.files]
aiofiles = [ aiofiles = [
@ -570,10 +562,6 @@ aiosignal = [
{file = "aiosignal-1.2.0-py3-none-any.whl", hash = "sha256:26e62109036cd181df6e6ad646f91f0dcfd05fe16d0cb924138ff2ab75d64e3a"}, {file = "aiosignal-1.2.0-py3-none-any.whl", hash = "sha256:26e62109036cd181df6e6ad646f91f0dcfd05fe16d0cb924138ff2ab75d64e3a"},
{file = "aiosignal-1.2.0.tar.gz", hash = "sha256:78ed67db6c7b7ced4f98e495e572106d5c432a93e1ddd1bf475e1dc05f5b7df2"}, {file = "aiosignal-1.2.0.tar.gz", hash = "sha256:78ed67db6c7b7ced4f98e495e572106d5c432a93e1ddd1bf475e1dc05f5b7df2"},
] ]
annotated-types = [
{file = "annotated-types-0.2.0.tar.gz", hash = "sha256:82afd5f40c1e77066b7cf54209c7160a5a30b91108d6dead943c64a511b10918"},
{file = "annotated_types-0.2.0-py3-none-any.whl", hash = "sha256:5e7d2e6f477b7abe7b44c1903bb5fb86320fa2fa41837d8e9a81c7beb999a079"},
]
arrow = [ arrow = [
{file = "arrow-1.2.2-py3-none-any.whl", hash = "sha256:d622c46ca681b5b3e3574fcb60a04e5cc81b9625112d5fb2b44220c36c892177"}, {file = "arrow-1.2.2-py3-none-any.whl", hash = "sha256:d622c46ca681b5b3e3574fcb60a04e5cc81b9625112d5fb2b44220c36c892177"},
{file = "arrow-1.2.2.tar.gz", hash = "sha256:05caf1fd3d9a11a1135b2b6f09887421153b94558e5ef4d090b567b47173ac2b"}, {file = "arrow-1.2.2.tar.gz", hash = "sha256:05caf1fd3d9a11a1135b2b6f09887421153b94558e5ef4d090b567b47173ac2b"},

View file

@ -8,8 +8,6 @@ authors = ["Jeffrey C. Ollie <jeff@ocjtech.us>"]
python = "^3.10" python = "^3.10"
arrow = "^1.2.2" arrow = "^1.2.2"
prometheus-async = {extras = ["aiohttp"], version = "^22.2.0"} prometheus-async = {extras = ["aiohttp"], version = "^22.2.0"}
annotated-types = "^0.2.0"
# annotated-types = {git = "https://github.com/annotated-types/annotated-types.git", rev = "v0.2.0"}
aiofiles = "^0.8.0" aiofiles = "^0.8.0"
[tool.poetry.dev-dependencies] [tool.poetry.dev-dependencies]