From 6fc1df90138fc6cb4e5ad8bb61ab6a4368c4df15 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Thu, 8 May 2025 17:12:22 -0700 Subject: [PATCH] Lint --- libs/langgraph/langgraph/func/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langgraph/langgraph/func/__init__.py b/libs/langgraph/langgraph/func/__init__.py index 72bc42bd2..76599c671 100644 --- a/libs/langgraph/langgraph/func/__init__.py +++ b/libs/langgraph/langgraph/func/__init__.py @@ -50,7 +50,7 @@ class TaskFunction(Generic[P, T]): # handle class methods # NOTE: we're modifying the instance method to avoid modifying # the original class method in case it's shared across multiple tasks - instance_method = functools.partial(func.__func__, func.__self__) # type: ignore [union-attr] + instance_method = functools.partial(func.__func__, func.__self__) # type: ignore [attr-defined] instance_method.__name__ = name # type: ignore [attr-defined] func = instance_method else: