Skip to content

Commit 8ef391a

Browse files
committed
fix linter warning
1 parent ba9b99c commit 8ef391a

File tree

1 file changed

+2
-2
lines changed
  • pydantic_extra_types

1 file changed

+2
-2
lines changed

pydantic_extra_types/s3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from __future__ import annotations
99

1010
import re
11-
from typing import Any, ClassVar
11+
from typing import Any, cast, ClassVar
1212

1313
from pydantic import GetCoreSchemaHandler
1414
from pydantic_core import core_schema
@@ -47,7 +47,7 @@ def __init__(self, value: str) -> None:
4747
match = self.patt.match(self.value)
4848
if match is None:
4949
raise ValueError(f'Invalid S3 path: {value!r}')
50-
groups: tuple[str, str, str] = match.groups()
50+
groups = cast(tuple[str, str, str], match.groups())
5151
self.bucket, self.key, self.last_key = groups
5252

5353
def __str__(self) -> str: # pragma: no cover

0 commit comments

Comments
 (0)