Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Python from raising a TypeError related to missing arguments #2207

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gandiddi
Copy link
Collaborator

Fixes #2198

Description

Typing for Middleware is incorrect

TypeError: MiddlewareSet.receive_activity_internal..call_next_middleware() takes 0 positional arguments but 1 was given

Specific Changes

Using functools.partial to create a callable that conforms to Callable[[TurnContext], Awaitable]

@gandiddi gandiddi requested a review from a team as a code owner February 14, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typing for Middleware is incorrect
1 participant