Skip to content

Fix argument parsing and deprecated asyncio.iscoroutinefunction#26

Merged
PenguinBoi12 merged 2 commits into
mainfrom
fix-parse-argument
Feb 15, 2026
Merged

Fix argument parsing and deprecated asyncio.iscoroutinefunction#26
PenguinBoi12 merged 2 commits into
mainfrom
fix-parse-argument

Conversation

@chrisdedman

Copy link
Copy Markdown
Contributor

Summary

  • Fix argument parsing to correctly handle variable positional arguments.
  • Replace deprecated asyncio.iscoroutinefunction with inspect.iscoroutinefunction.

Comment thread matrix/bot.py
:raises TypeError: If the function is not a coroutine.
"""
if not asyncio.iscoroutinefunction(func):
if not inspect.iscoroutinefunction(func):

@chrisdedman chrisdedman Feb 15, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reason of the change
Image

@PenguinBoi12 PenguinBoi12 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Good job!

@PenguinBoi12 PenguinBoi12 merged commit 9ce021a into main Feb 15, 2026
4 checks passed
@PenguinBoi12 PenguinBoi12 deleted the fix-parse-argument branch March 10, 2026 04:08
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.

2 participants