Skip to content

Comments

Fix argument parsing and deprecated asyncio.iscoroutinefunction#26

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

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

Conversation

@chrisdedman
Copy link
Contributor

Summary

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

:raises TypeError: If the function is not a coroutine.
"""
if not asyncio.iscoroutinefunction(func):
if not inspect.iscoroutinefunction(func):
Copy link
Contributor Author

@chrisdedman chrisdedman Feb 15, 2026

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

Copy link
Contributor

@PenguinBoi12 PenguinBoi12 left a comment

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
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