We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba9b99c commit 8ef391aCopy full SHA for 8ef391a
pydantic_extra_types/s3.py
@@ -8,7 +8,7 @@
8
from __future__ import annotations
9
10
import re
11
-from typing import Any, ClassVar
+from typing import Any, cast, ClassVar
12
13
from pydantic import GetCoreSchemaHandler
14
from pydantic_core import core_schema
@@ -47,7 +47,7 @@ def __init__(self, value: str) -> None:
47
match = self.patt.match(self.value)
48
if match is None:
49
raise ValueError(f'Invalid S3 path: {value!r}')
50
- groups: tuple[str, str, str] = match.groups()
+ groups = cast(tuple[str, str, str], match.groups())
51
self.bucket, self.key, self.last_key = groups
52
53
def __str__(self) -> str: # pragma: no cover
0 commit comments