Skip to content

Commit 614ad71

Browse files
committed
this time i carefully solved all linting issues
1 parent 6d320be commit 614ad71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libs/core/langchain_core/utils/pydantic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
import inspect
66
import textwrap
77
import warnings
8-
from contextlib import nullcontext
8+
from contextlib import AbstractContextManager, nullcontext
99
from functools import lru_cache, wraps
1010
from types import GenericAlias
1111
from typing import (
1212
TYPE_CHECKING,
1313
Any,
14-
ContextManager,
1514
TypeVar,
1615
cast,
1716
overload,
@@ -569,7 +568,8 @@ def create_model_v2(
569568
capture_warnings = True
570569

571570
ctx = cast(
572-
ContextManager, warnings.catch_warnings() if capture_warnings else nullcontext()
571+
"AbstractContextManager",
572+
warnings.catch_warnings() if capture_warnings else nullcontext(),
573573
)
574574
with ctx:
575575
if capture_warnings:

0 commit comments

Comments
 (0)